X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNumber.cpp;h=c9ae470decf9dcdd690936270dfa9002517722e0;hb=50b700938b37f560bfcbafb2a10051376789bd06;hp=fdacf0c7bccda1df8d70a4d2e1051f6e2b260cd2;hpb=27f8da648d18d216de481620c6ff2f4222578f25;p=lyx.git diff --git a/src/mathed/InsetMathNumber.cpp b/src/mathed/InsetMathNumber.cpp index fdacf0c7bc..c9ae470dec 100644 --- a/src/mathed/InsetMathNumber.cpp +++ b/src/mathed/InsetMathNumber.cpp @@ -69,7 +69,10 @@ void InsetMathNumber::octave(OctaveStream & os) const void InsetMathNumber::mathmlize(MathStream & os) const { - os << " " << str_ << " "; + if (os.inText()) + os << str_; + else + os << "" << str_ << ""; }