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);
extractLims(ar);
extractStrings(ar);
}
- lyxerr << "\nStructure to: " << ar << endl;
+ //lyxerr << "\nStructure to: " << ar << endl;
}
{
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");
}
}