X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathMatrix.cpp;h=54a68bd558050f7d45598d45f5e5c1c6badaa7c9;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=b13d00677f37e8509f74b8e56e33bda81e2ca759;hpb=ed856c9f4d8bf83963a6d8e21cf454b355881d48;p=lyx.git
diff --git a/src/mathed/InsetMathMatrix.cpp b/src/mathed/InsetMathMatrix.cpp
index b13d00677f..54a68bd558 100644
--- a/src/mathed/InsetMathMatrix.cpp
+++ b/src/mathed/InsetMathMatrix.cpp
@@ -32,7 +32,7 @@ Inset * InsetMathMatrix::clone() const
}
-void InsetMathMatrix::write(WriteStream & os) const
+void InsetMathMatrix::write(TeXMathStream & os) const
{
InsetMathGrid::write(os);
}
@@ -92,14 +92,15 @@ void InsetMathMatrix::mathematica(MathematicaStream & os) const
}
-void InsetMathMatrix::mathmlize(MathStream & os) const
+void InsetMathMatrix::mathmlize(MathMLStream & ms) const
{
- os << ""
+ // 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) {
- os << MTag("mtr");
+ ms << MTag("mtr");
for (col_type col = 0; col < ncols(); ++col) {
idx_type const i = index(row, col);
if (cellinfo(i).multi != CELL_PART_OF_MULTICOLUMN) {
@@ -107,15 +108,15 @@ void InsetMathMatrix::mathmlize(MathStream & os) const
ostringstream attr;
if (cellcols > 1)
attr << "columnspan='" << cellcols << '\'';
- os << MTag("mtd", attr.str()) << cell(i) << ETag("mtd");
+ ms << MTag("mtd", attr.str()) << cell(i) << ETag("mtd");
}
}
- os << ETag("mtr");
+ ms << ETag("mtr");
}
- os << ETag("mtable");
- os << ""
+ ms << ETag("mtable")
+ << MTagInline("mo", "form='postfix' fence='true' stretchy='true' symmetric='true' lspace='0.1666em'")
<< convertDelimToXMLEscape(right_)
- << "";
+ << ETagInline("mo");
}