]> git.lyx.org Git - features.git/commitdiff
Use convertDelimToXMLEscape with matrix delimiters, too.
authorRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 02:52:27 +0000 (22:52 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 02:52:27 +0000 (22:52 -0400)
src/mathed/InsetMathMatrix.cpp

index 852cd893a5244230ee5d754f9c7a89927061d296..620f20f961fdfcbec4f41c0721d116b7bd137ea9 100644 (file)
@@ -95,8 +95,9 @@ void InsetMathMatrix::mathematica(MathematicaStream & os) const
 void InsetMathMatrix::mathmlize(MathStream & os) const
 {
        os << "<mo form='prefix' fence='true' stretchy='true' symmetric='true' lspace='thinmathspace'>"
-          << left_ << "</mo>";
-       os << MTag("mtable");
+          << convertDelimToXMLEscape(left_) 
+          << "</mo>"
+          << MTag("mtable");
        for (row_type row = 0; row < nrows(); ++row) {
                os << MTag("mtr");
                for (col_type col = 0; col < ncols(); ++col) {
@@ -113,7 +114,8 @@ void InsetMathMatrix::mathmlize(MathStream & os) const
        }
        os << ETag("mtable");
        os << "<mo form='postfix' fence='true' stretchy='true' symmetric='true' lspace='thinmathspace'>"
-          << right_ << "</mo>";
+          << convertDelimToXMLEscape(right_) 
+          << "</mo>";
 }