]> git.lyx.org Git - features.git/commitdiff
Add class attribute for \mathbb in XHTML output.
authorRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 02:47:21 +0000 (22:47 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 02:47:21 +0000 (22:47 -0400)
Patch from Josh.

src/mathed/InsetMathFont.cpp

index b7b3dfb3558a67279693b4976bf048470c9d7205..020509ddf2a2776330e0650b02d8a6a9fb360a93 100644 (file)
@@ -203,9 +203,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);
 }