From: Thibaut Cuvelier Date: Fri, 9 Dec 2022 00:48:14 +0000 (+0100) Subject: MathML: output substacks as grids. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5893ea866e99c406d6422257dd1a8ab5c7bc7f30;p=features.git MathML: output substacks as grids. Based on a commit from lynx Part of bug #12590. --- diff --git a/src/mathed/InsetMathSubstack.cpp b/src/mathed/InsetMathSubstack.cpp index 5db39c2e5a..649f947981 100644 --- a/src/mathed/InsetMathSubstack.cpp +++ b/src/mathed/InsetMathSubstack.cpp @@ -156,17 +156,8 @@ void InsetMathSubstack::maple(MapleStream & os) const void InsetMathSubstack::mathmlize(MathMLStream & ms) const { - int movers = 0; - row_type const numrows = nrows(); - for (row_type row = 0; row < nrows(); ++row) { - if (row < numrows - 1) { - movers ++; - ms << MTag("munder"); - } - ms << MTag("mrow") << cell(index(row, 0)) << ETag("mrow"); - } - for (int i = 1; i <= movers; ++i) - ms << ETag("munder"); + // Output the substack as a standard grid. + InsetMathGrid::mathmlize(ms); }