From 5893ea866e99c406d6422257dd1a8ab5c7bc7f30 Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Fri, 9 Dec 2022 01:48:14 +0100 Subject: [PATCH] MathML: output substacks as grids. Based on a commit from lynx Part of bug #12590. --- src/mathed/InsetMathSubstack.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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); } -- 2.39.5