Fix up math scripts. Everything needs to go into <mrow>. (This acts as a

general grouping mechanism, basically.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32564 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-17 15:39:18 +00:00
parent e2d6ecff99
commit 873c9ad4f8

View File

@ -625,16 +625,18 @@ void InsetMathScript::mathmlize(MathStream & os) const
os << MTag("msub");
if (nuc().size())
os << nuc();
os << MTag("mrow") << nuc() << ETag("mrow");
else
os << "<mrow />";
if (u && d)
os << down() << up() << ETag("msubsup");
os << MTag("mrow") << down() << ETag("mrow")
<< MTag("mrow") << up() << ETag("mrow")
<< ETag("msubsup");
else if (u)
os << up() << ETag("msup");
os << MTag("mrow") << up() << ETag("mrow") << ETag("msup");
else if (d)
os << down() << ETag("msub");
os << MTag("mrow") << down() << ETag("mrow") << ETag("msub");
}