]> git.lyx.org Git - features.git/commitdiff
MathML: output substacks as grids.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 9 Dec 2022 00:48:14 +0000 (01:48 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Fri, 9 Dec 2022 00:48:14 +0000 (01:48 +0100)
Based on a commit from lynx <lorenzobertini97@gmail.com>

Part of bug #12590.

src/mathed/InsetMathSubstack.cpp

index 5db39c2e5a1b3c15faa41123350659c20a5f9e90..649f947981c9f4721157781a7bc360f170e339dc 100644 (file)
@@ -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);
 }