]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
Do some caching of window title and related UI
[lyx.git] / src / mathed / InsetMathFont.cpp
index 18af75d528b99de0d83f332dc509802e5cfb323f..a017dd810c4ac3e08af92ff71325f05f4511ebb9 100644 (file)
@@ -194,9 +194,15 @@ void InsetMathFont::mathmlize(MathStream & os) const
        // no support at present for textipa, textsc, noun
 
        if (!variant.empty()) {
-               os << MTag("mstyle", "mathvariant='" + variant + "'")
-                  << cell(0)
-                  << ETag("mstyle");
+               if (tag == "mathbb") {
+                       os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
+                          << cell(0)
+                          << ETag("mstyle");
+               } else {
+                       os << MTag("mstyle", "mathvariant='" + variant + "'")
+                                << cell(0)
+                                << ETag("mstyle");
+               }
        } else
                os << cell(0);
 }