MathML: generate only a mathvariant for double-struck font, no redundant class

This commit is contained in:
Thibaut Cuvelier 2020-06-11 21:25:22 +02:00 committed by Enrico Forestieri
parent 7118581a72
commit c8d0492194

View File

@ -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 {
if (!variant.empty())
os << MTag("mstyle", "mathvariant='" + variant + "'")
<< cell(0)
<< ETag("mstyle");
}
} else
else
os << cell(0);
}