]> git.lyx.org Git - features.git/commitdiff
Add class attribute for \mathbb in XHTML output. Fixes part of 8251.
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 03:02:28 +0000 (23:02 -0400)
Patch from Josh.

(cherry picked from commit e3625b5b8052e75e8741152bdfd313b54969c675)

src/mathed/InsetMathFont.cpp
status.22x

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);
 }
index a23d38815c69d51b749c6c301870b709af917ee3..151583f90c938a0cc483173a0eb398bc92a11a0e 100644 (file)
@@ -173,6 +173,9 @@ What's new
 
 - Output correct entities for named delimiters (bug 8280).
 
+- Added class attribute for mathbb to allow customization (part of bug
+  8521).
+
 
 * TEX2LYX