]> git.lyx.org Git - features.git/commitdiff
More Math ML fixes. Using <mfenced> seems to be a bad idea, and the <mo>
authorRichard Heck <rgheck@comcast.net>
Wed, 16 Dec 2009 15:12:34 +0000 (15:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 16 Dec 2009 15:12:34 +0000 (15:12 +0000)
version is claimed to be completely equivalent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32543 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathDelim.cpp
src/mathed/InsetMathExFunc.cpp
src/mathed/InsetMathLim.cpp

index 12688f1f58443327d147cce1dd3a7eb49063c1e5..fa1ab4da7e9e96adef46786758d35656b86e0080 100644 (file)
@@ -163,8 +163,8 @@ void InsetMathDelim::mathematica(MathematicaStream & os) const
 
 void InsetMathDelim::mathmlize(MathStream & os) const
 {
-       os << "<mfenced open=\"" << left_ << "\" close=\""
-               << right_ << "\">" << cell(0) << "</mfenced>";
+       os << "<mo>" << left_ << "</mo>"
+               << cell(0) << "<mo>" << right_ << "</mo>";
 }
 
 
index e4479275d01093e7aec6a6699e263b5f72da9c00..25c8dcbaf9b964300c2844f5243699806f9e1aac 100644 (file)
@@ -124,7 +124,7 @@ void InsetMathExFunc::mathematica(MathematicaStream & os) const
 
 void InsetMathExFunc::mathmlize(MathStream & os) const
 {
-       os.os() << "<mi>" << name_ << "</mi>" << "&af;";
+       os << "<mi>" << name_ << "</mi><mo>&af;</mo>";
        os << cell(0);
 }
 
index 718d923b195c1914d67568a06a1252720e12108e..a5eae28bb71f4eae1e909c3c7fecd2c452624b46 100644 (file)
@@ -77,7 +77,7 @@ void InsetMathLim::mathmlize(MathStream & os) const
        os << "<munder>"
           << "<mo form='prefix'>" << "lim" << "</mo>"
           << "<mrow>" << cell(1) << "<mo>&rarr;</mo>" << cell(2) << "</mrow></munder>"
-          << "<mfenced open='(' close=')'>" << cell(0) << "</mfenced>"
+          << "<mo>(</mo>" << cell(0) << "<mo>)</mo>" 
 }