]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMatrix.cpp
Fix bug #12772
[lyx.git] / src / mathed / InsetMathMatrix.cpp
index 72d58d3d05c376726de046fb42f651b1c40aa654..54a68bd558050f7d45598d45f5e5c1c6badaa7c9 100644 (file)
@@ -94,9 +94,10 @@ void InsetMathMatrix::mathematica(MathematicaStream & os) const
 
 void InsetMathMatrix::mathmlize(MathMLStream & ms) const
 {
-       ms << "<" << from_ascii(ms.namespacedTag("mo")) << " form='prefix' fence='true' stretchy='true' symmetric='true' lspace='thinmathspace'>"
-          << convertDelimToXMLEscape(left_, ms.xmlMode())
-          << "</" << from_ascii(ms.namespacedTag("mo")) << ">"
+       // lspace='3/18em', but fractions are not allowed.
+       ms << MTagInline("mo", "form='prefix' fence='true' stretchy='true' symmetric='true' lspace='0.1666em'")
+          << convertDelimToXMLEscape(left_)
+          << ETagInline("mo")
           << MTag("mtable");
        for (row_type row = 0; row < nrows(); ++row) {
                ms << MTag("mtr");
@@ -113,9 +114,9 @@ void InsetMathMatrix::mathmlize(MathMLStream & ms) const
                ms << ETag("mtr");
        }
        ms << ETag("mtable")
-          << "<" << from_ascii(ms.namespacedTag("mo")) << " form='postfix' fence='true' stretchy='true' symmetric='true' lspace='thinmathspace'>"
-          << convertDelimToXMLEscape(right_, ms.xmlMode())
-          << "</" << from_ascii(ms.namespacedTag("mo")) << ">";
+          << MTagInline("mo", "form='postfix' fence='true' stretchy='true' symmetric='true' lspace='0.1666em'")
+          << convertDelimToXMLEscape(right_)
+          << ETagInline("mo");
 }