commit dd1a85a2baf0aeb867a634ade47275b952d38354
Author: Thibaut Cuvelier <[email protected]>
Date:   Tue May 25 03:54:42 2021 +0200

    MathML: more consistency between DocBook and XHTML.
    
    By lynx: 
https://www.lyx.org/trac/attachment/ticket/12221/0004-mathml-display-changes.patch
---
 src/mathed/InsetMathHull.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 3ba5cdb..b880895 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -2440,7 +2440,7 @@ void InsetMathHull::docbook(XMLStream & xs, OutputParams 
const & runparams) cons
                // executed, and the formula is not output to the DocBook 
stream.
                odocstringstream ostmp;
                MathMLStream mstmp(ostmp, ms.xmlns(), ms.xmlMode());
-               InsetMathGrid::mathmlize(mstmp);
+               mathmlize(mstmp);
 
                // Choose the display style for the formula, to be output as an 
attribute near the formula root.
                std::string mathmlAttr;
@@ -2550,7 +2550,7 @@ void InsetMathHull::mathmlize(MathMLStream & ms) const
                        ms << MTag("mtd");
                        docstring const & num = numbers_[row];
                        if (!num.empty())
-                               ms << '(' << num << ')';
+                               ms << MTagInline("mtext") << '(' << num << ')' 
<< ETagInline("mtext");
                  ms << ETag("mtd");
                }
                if (havetable)
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to