MathML: remove redundant mrow in InsetMathScript.

https://www.lyx.org/trac/attachment/ticket/12221/0006-amends-to-a579128c-a68e9793-a68e9793.patch by lynx
This commit is contained in:
Thibaut Cuvelier 2021-12-08 02:11:48 +01:00
parent d1daa092f6
commit 7513d88350

View File

@ -624,12 +624,15 @@ void InsetMathScript::mathmlize(MathMLStream & ms) const
if (!nuc().empty()) if (!nuc().empty())
ms << nuc(); ms << nuc();
else else
// TODO: is this empty <mrow> required?
ms << CTag("mrow"); ms << CTag("mrow");
// No need to wrap these in an <mrow>, as it's done by MathExtern.
// More details in https://www.lyx.org/trac/ticket/12221#comment:10.
if (d) if (d)
ms << MTag("mrow") << down() << ETag("mrow"); ms << down();
if (u) if (u)
ms << MTag("mrow") << up() << ETag("mrow"); ms << up();
ms << ETag(tag); ms << ETag(tag);
} }