commit c8d0492194c99c4ed53c389a59078b2b2a4d7c15
Author: Thibaut Cuvelier <[email protected]>
Date: Thu Jun 11 21:25:22 2020 +0200
MathML: generate only a mathvariant for double-struck font, no redundant
class
---
src/mathed/InsetMathFont.cpp | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp
index c5932dd..6611590 100644
--- a/src/mathed/InsetMathFont.cpp
+++ b/src/mathed/InsetMathFont.cpp
@@ -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);
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs