]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMatrix.cpp
Collapsable -> Collapsible (part 2)
[lyx.git] / src / mathed / InsetMathMatrix.cpp
index 852cd893a5244230ee5d754f9c7a89927061d296..7f6700f62447a102480e2fd8a4cb87999b9c67b3 100644 (file)
@@ -20,7 +20,7 @@ using namespace std;
 
 namespace lyx {
 
-InsetMathMatrix::InsetMathMatrix(InsetMathGrid const & p, 
+InsetMathMatrix::InsetMathMatrix(InsetMathGrid const & p,
                        docstring const & left, docstring const & right)
        : InsetMathGrid(p), left_(left), right_(right)
 {}
@@ -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>";
 }
 
 
@@ -123,11 +125,11 @@ void InsetMathMatrix::htmlize(HtmlStream & os) const
 
        // we do not print the delimiters but instead try to hack them
        string const rows = convert<string>(nrows());
-       string const lattrib = 
+       string const lattrib =
                        "class='ldelim' rowspan='" + rows + "'";
-       string const rattrib = 
+       string const rattrib =
                        "class='rdelim' rowspan='" + rows + "'";
-       
+
        for (row_type row = 0; row < nrows(); ++row) {
                os << MTag("tr") << '\n';
                if (row == 0)