Wrap text in <mtext>, not <mrow>.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32705 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-31 18:53:40 +00:00
parent 25edee2ead
commit 88d5bfac6a

View File

@ -1417,18 +1417,20 @@ void mathmlize(MathData const & dat, MathStream & os)
{
MathData ar = dat;
extractStructure(ar, MATHML);
if (ar.size() == 0)
if (ar.size() == 0) {
if (!os.inText())
os << "<mrow/>";
else if (ar.size() == 1)
} else if (ar.size() == 1)
os << ar.front();
else {
os << MTag("mrow");
os << (os.inText() ? MTag("mtext") : MTag("mrow"));
for (MathData::const_iterator it = ar.begin(); it != ar.end(); ++it)
(*it)->mathmlize(os);
os << ETag("mrow");
os << (os.inText() ? ETag("mtext") : ETag("mrow"));
}
}
// convert this inset somehow to a number
bool extractNumber(MathData const & ar, int & i)
{