commit 0786b8082836868f5b3125800f1cacfca92590e6
Author: Richard Kimberly Heck <[email protected]>
Date: Sun Jan 3 19:29:04 2021 -0500
Fix MathML delimiters again.
Patch from lynx.
---
src/mathed/InsetMathDelim.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mathed/InsetMathDelim.cpp b/src/mathed/InsetMathDelim.cpp
index 95a0883..e97e12c 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())
<< "</" << from_ascii(ms.namespacedTag("mo")) << ">"
<< "\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())
- << "</" << from_ascii(ms.namespacedTag("mo")) << ">"
- << "\n";
+ << "</" << from_ascii(ms.namespacedTag("mo")) << ">" << "\n"
+ << "</" << from_ascii(ms.namespacedTag("mrow")) << ">" << "\n";
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs