mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
f3fbfcfd05
commit
24d8d880c1
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user