From: Richard Heck Date: Thu, 30 Jun 2016 02:47:21 +0000 (-0400) Subject: Add class attribute for \mathbb in XHTML output. X-Git-Tag: 2.3.0alpha1~1378 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e3625b5b8052e75e8741152bdfd313b54969c675;p=features.git Add class attribute for \mathbb in XHTML output. Patch from Josh. --- diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index b7b3dfb355..020509ddf2 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -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); }