mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
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:
parent
25edee2ead
commit
88d5bfac6a
@ -1417,18 +1417,20 @@ void mathmlize(MathData const & dat, MathStream & os)
|
||||
{
|
||||
MathData ar = dat;
|
||||
extractStructure(ar, MATHML);
|
||||
if (ar.size() == 0)
|
||||
os << "<mrow/>";
|
||||
else if (ar.size() == 1)
|
||||
if (ar.size() == 0) {
|
||||
if (!os.inText())
|
||||
os << "<mrow/>";
|
||||
} 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user