]> git.lyx.org Git - lyx.git/commitdiff
Do not export the content of InsetMathBoxed as text in MathML
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jul 2024 21:44:58 +0000 (23:44 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jul 2024 21:44:58 +0000 (23:44 +0200)
\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

src/mathed/InsetMathBox.cpp

index f06ffcf95d747e29ab30a22500313108f694805b..62a11a15aad5555374d61c8fa1a5bdf87660e1c0 100644 (file)
@@ -402,7 +402,9 @@ void InsetMathBoxed::infoize(odocstream & os) const
 
 void InsetMathBoxed::mathmlize(MathMLStream & ms) const
 {
-       mathmlizeHelper(ms, cell(0), "class='boxed'");
+       ms << MTag("mrow", "class='boxed'");
+       ms << cell(0);
+       ms << ETag("mrow");
 }