mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
MathML: generate only a mathvariant for double-struck font, no redundant class
This commit is contained in:
parent
7118581a72
commit
c8d0492194
@ -223,17 +223,11 @@ void InsetMathFont::mathmlize(MathStream & os) const
|
||||
variant = "monospace";
|
||||
// no support at present for textipa, textsc, noun
|
||||
|
||||
if (!variant.empty()) {
|
||||
if (tag == "mathbb" || tag == "mathds") {
|
||||
os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
|
||||
<< cell(0)
|
||||
<< ETag("mstyle");
|
||||
} else {
|
||||
os << MTag("mstyle", "mathvariant='" + variant + "'")
|
||||
<< cell(0)
|
||||
<< ETag("mstyle");
|
||||
}
|
||||
} else
|
||||
if (!variant.empty())
|
||||
os << MTag("mstyle", "mathvariant='" + variant + "'")
|
||||
<< cell(0)
|
||||
<< ETag("mstyle");
|
||||
else
|
||||
os << cell(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user