From 0786b8082836868f5b3125800f1cacfca92590e6 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sun, 3 Jan 2021 19:29:04 -0500 Subject: [PATCH] Fix MathML delimiters again. Patch from lynx. --- src/mathed/InsetMathDelim.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mathed/InsetMathDelim.cpp b/src/mathed/InsetMathDelim.cpp index 95a0883cce..e97e12c04e 100644 --- a/src/mathed/InsetMathDelim.cpp +++ b/src/mathed/InsetMathDelim.cpp @@ -181,7 +181,8 @@ void InsetMathDelim::mathematica(MathematicaStream & os) const void InsetMathDelim::mathmlize(MathMLStream & ms) const { - ms << "<" << from_ascii(ms.namespacedTag("mo")) << " form='prefix' fence='true' stretchy='true' symmetric='true'>" + ms << "<" << from_ascii(ms.namespacedTag("mrow")) << ">" << "\n" + << "<" << from_ascii(ms.namespacedTag("mo")) << " form='prefix' fence='true' stretchy='true' symmetric='true'>" << convertDelimToXMLEscape(left_, ms.xmlMode()) << "" << "\n" @@ -189,8 +190,8 @@ void InsetMathDelim::mathmlize(MathMLStream & ms) const << "\n" << "<" << from_ascii(ms.namespacedTag("mo")) << " form='postfix' fence='true' stretchy='true' symmetric='true'>" << convertDelimToXMLEscape(right_, ms.xmlMode()) - << "" - << "\n"; + << "" << "\n" + << "" << "\n"; }