commit 7513d88350867812de3505bcffb9d2f826e52937
Author: Thibaut Cuvelier <[email protected]>
Date:   Wed Dec 8 02:11:48 2021 +0100

    MathML: remove redundant mrow in InsetMathScript.
    
    
https://www.lyx.org/trac/attachment/ticket/12221/0006-amends-to-a579128c-a68e9793-a68e9793.patch
 by lynx
---
 src/mathed/InsetMathScript.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mathed/InsetMathScript.cpp b/src/mathed/InsetMathScript.cpp
index a5f286b..73e1ef9 100644
--- a/src/mathed/InsetMathScript.cpp
+++ b/src/mathed/InsetMathScript.cpp
@@ -624,12 +624,15 @@ void InsetMathScript::mathmlize(MathMLStream & ms) const
        if (!nuc().empty())
                ms << nuc();
        else
+               // TODO: is this empty <mrow> required?
                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)
-               ms << MTag("mrow") << down() << ETag("mrow");
+               ms << down();
        if (u)
-               ms << MTag("mrow") << up() << ETag("mrow");
+               ms << up();
 
        ms << ETag(tag);
 }
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to