]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathExtern.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / mathed / MathExtern.cpp
index 896bdf625265218417ec6cc9069d1111707d6278..8d1df06f777ee1e78b3bfa8df57c035d5c939e6f 100644 (file)
@@ -948,7 +948,7 @@ void extractLims(MathData & ar)
 
 void extractStructure(MathData & ar, ExternalMath kind)
 {
-       lyxerr << "\nStructure from: " << ar << endl;
+       //lyxerr << "\nStructure from: " << ar << endl;
        if (kind != MATHML && kind != HTML)
                splitScripts(ar);
        extractDelims(ar);
@@ -965,7 +965,7 @@ void extractStructure(MathData & ar, ExternalMath kind)
                extractLims(ar);
                extractStrings(ar);
        }
-       lyxerr << "\nStructure to: " << ar << endl;
+       //lyxerr << "\nStructure to: " << ar << endl;
 }
 
 
@@ -1419,18 +1419,15 @@ void mathmlize(MathData const & dat, MathStream & os)
 {
        MathData ar = dat;
        extractStructure(ar, MATHML);
-       if (ar.size() == 0) {
-               if (!os.inText())
-                       os << "<mrow/>";
-       } else if (ar.size() == 1)
+       if (ar.size() == 0)
+               os << "<mrow/>";
+       else if (ar.size() == 1)
                os << ar.front();
        else {
-               if (!os.inText())
-                       os << MTag("mrow");
+               os << MTag("mrow");
                for (MathData::const_iterator it = ar.begin(); it != ar.end(); ++it)
                        (*it)->mathmlize(os);
-               if (!os.inText())
-                       os << ETag("mrow");
+               os << ETag("mrow");
        }
 }