X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNumber.cpp;h=c9ae470decf9dcdd690936270dfa9002517722e0;hb=50b700938b37f560bfcbafb2a10051376789bd06;hp=933505a6bfa28fb0104c4ff9ef273cebaf63a03a;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git
diff --git a/src/mathed/InsetMathNumber.cpp b/src/mathed/InsetMathNumber.cpp
index 933505a6bf..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_ << "";
}