X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathMatrix.cpp;h=7f6700f62447a102480e2fd8a4cb87999b9c67b3;hb=a59301eaff51c63db706e17bd5496b8e02928f14;hp=852cd893a5244230ee5d754f9c7a89927061d296;hpb=39329935f33c14b4d9f2bcf73c4cf90d6bbf1bef;p=lyx.git diff --git a/src/mathed/InsetMathMatrix.cpp b/src/mathed/InsetMathMatrix.cpp index 852cd893a5..7f6700f624 100644 --- a/src/mathed/InsetMathMatrix.cpp +++ b/src/mathed/InsetMathMatrix.cpp @@ -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 << "" - << left_ << ""; - os << MTag("mtable"); + << convertDelimToXMLEscape(left_) + << "" + << 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 << "" - << right_ << ""; + << convertDelimToXMLEscape(right_) + << ""; } @@ -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(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)