commit 24d8d880c16b889a3128575dab27a530337a0134
Author: Richard Heck <[email protected]>
Date: Wed Jun 29 22:47:21 2016 -0400
Add class attribute for \mathbb in XHTML output. Fixes part of 8251.
Patch from Josh.
(cherry picked from commit e3625b5b8052e75e8741152bdfd313b54969c675)
---
src/mathed/InsetMathFont.cpp | 12 +++++++++---
status.22x | 3 +++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp
index 18af75d..a017dd8 100644
--- a/src/mathed/InsetMathFont.cpp
+++ b/src/mathed/InsetMathFont.cpp
@@ -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);
}
diff --git a/status.22x b/status.22x
index a23d388..151583f 100644
--- a/status.22x
+++ b/status.22x
@@ -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