mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
InsetMathSpace: use XML entities instead of HTML in MathML.
This part should have been committed with bc73a857
in the first place.
This commit is contained in:
parent
df025d15df
commit
9b80a5ba9e
@ -203,11 +203,8 @@ void InsetMathSpace::mathmlize(MathMLStream & ms) const
|
||||
string l;
|
||||
if (si.custom)
|
||||
l = length_.asHTMLString();
|
||||
else if (si.kind != InsetSpaceParams::MEDIUM) {
|
||||
stringstream ss;
|
||||
ss << si.width;
|
||||
l = ss.str() + "px";
|
||||
}
|
||||
else if (si.kind != InsetSpaceParams::MEDIUM)
|
||||
l = to_string(si.width) + "px";
|
||||
|
||||
std::string attr;
|
||||
if (!l.empty())
|
||||
@ -222,23 +219,23 @@ void InsetMathSpace::htmlize(HtmlStream & ms) const
|
||||
SpaceInfo const & si = space_info[space_];
|
||||
switch (si.kind) {
|
||||
case InsetSpaceParams::THIN:
|
||||
ms << from_ascii(" ");
|
||||
ms << from_ascii(" "); // HTML:  
|
||||
break;
|
||||
case InsetSpaceParams::MEDIUM:
|
||||
ms << from_ascii(" ");
|
||||
break;
|
||||
case InsetSpaceParams::THICK:
|
||||
ms << from_ascii(" ");
|
||||
ms << from_ascii(" "); // HTML:  
|
||||
break;
|
||||
case InsetSpaceParams::ENSKIP:
|
||||
case InsetSpaceParams::ENSPACE:
|
||||
ms << from_ascii(" ");
|
||||
ms << from_ascii(" "); // HTML:  
|
||||
break;
|
||||
case InsetSpaceParams::QUAD:
|
||||
ms << from_ascii(" ");
|
||||
ms << from_ascii(" "); // HTML:  
|
||||
break;
|
||||
case InsetSpaceParams::QQUAD:
|
||||
ms << from_ascii("  ");
|
||||
ms << from_ascii("  "); // HTML:   
|
||||
break;
|
||||
case InsetSpaceParams::HFILL:
|
||||
case InsetSpaceParams::HFILL_PROTECTED:
|
||||
|
Loading…
Reference in New Issue
Block a user