Use convertDelimToXMLEscape with matrix delimiters, too.

This commit is contained in:
Richard Heck 2016-06-29 22:52:27 -04:00
parent e3625b5b80
commit 277ac31278

View 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>";
}