Add class attribute for \mathbb in XHTML output. Fixes part of 8251.

Patch from Josh.

(cherry picked from commit e3625b5b80)
This commit is contained in:
Richard Heck 2016-06-29 22:47:21 -04:00
parent f3fbfcfd05
commit 24d8d880c1
2 changed files with 12 additions and 3 deletions

View 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);
}

View 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