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"); os << MTag("msub");
if (nuc().size()) if (nuc().size())
os << nuc(); os << MTag("mrow") << nuc() << ETag("mrow");
else else
os << "<mrow/>"; os << "<mrow />";
if (u && d) if (u && d)
os << down() << up() << ETag("msubsup"); os << MTag("mrow") << down() << ETag("mrow")
<< MTag("mrow") << up() << ETag("mrow")
<< ETag("msubsup");
else if (u) else if (u)
os << up() << ETag("msup"); os << MTag("mrow") << up() << ETag("mrow") << ETag("msup");
else if (d) else if (d)
os << down() << ETag("msub"); os << MTag("mrow") << down() << ETag("mrow") << ETag("msub");
} }