]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBig.cpp
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / InsetMathBig.cpp
index 889f8d4f97842e2e926a43fca3e2272e15a0da96..aeb1ee5f8c1bd2013bf2b00a5272a267b3fafda8 100644 (file)
@@ -135,11 +135,12 @@ void InsetMathBig::normalize(NormalStream & os) const
 }
 
 
-void InsetMathBig::mathmlize(MathStream & os) const
+void InsetMathBig::mathmlize(MathStream & ms) const
 {
-       os << "<mo form='prefix' fence='true' stretchy='true' symmetric='true'>"
-          << convertDelimToXMLEscape(delim_)
-          << "</mo>";
+       ms << "<" << from_ascii(ms.namespacedTag("mo"))
+          << " form='prefix' fence='true' stretchy='true' symmetric='true'>"
+          << convertDelimToXMLEscape(delim_, ms.xmlMode())
+          << "</" << from_ascii(ms.namespacedTag("mo")) << ">";
 }
 
 
@@ -153,7 +154,7 @@ void InsetMathBig::htmlize(HtmlStream & os) const
        default: name  = "big"; break;
        }
        os << MTag("span", "class='" + name + "symbol'")
-          << convertDelimToXMLEscape(delim_)
+          << convertDelimToXMLEscape(delim_, false)
           << ETag("span");
 }