From 88d5bfac6a7ed2cb430f6f1a4d875ea24a8bd830 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 31 Dec 2009 18:53:40 +0000 Subject: [PATCH] Wrap text in , not . git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32705 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathExtern.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index f9b9f42af2..2e43c11719 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -1417,18 +1417,20 @@ void mathmlize(MathData const & dat, MathStream & os) { MathData ar = dat; extractStructure(ar, MATHML); - if (ar.size() == 0) - os << ""; - else if (ar.size() == 1) + if (ar.size() == 0) { + if (!os.inText()) + os << ""; + } 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) { -- 2.39.2