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;
|
MathData ar = dat;
|
||||||
extractStructure(ar, MATHML);
|
extractStructure(ar, MATHML);
|
||||||
if (ar.size() == 0)
|
if (ar.size() == 0) {
|
||||||
os << "<mrow/>";
|
if (!os.inText())
|
||||||
else if (ar.size() == 1)
|
os << "<mrow/>";
|
||||||
|
} else if (ar.size() == 1)
|
||||||
os << ar.front();
|
os << ar.front();
|
||||||
else {
|
else {
|
||||||
os << MTag("mrow");
|
os << (os.inText() ? MTag("mtext") : MTag("mrow"));
|
||||||
for (MathData::const_iterator it = ar.begin(); it != ar.end(); ++it)
|
for (MathData::const_iterator it = ar.begin(); it != ar.end(); ++it)
|
||||||
(*it)->mathmlize(os);
|
(*it)->mathmlize(os);
|
||||||
os << ETag("mrow");
|
os << (os.inText() ? ETag("mtext") : ETag("mrow"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// convert this inset somehow to a number
|
// convert this inset somehow to a number
|
||||||
bool extractNumber(MathData const & ar, int & i)
|
bool extractNumber(MathData const & ar, int & i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user