]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
Whitespace.
[lyx.git] / src / mathed / InsetMathNumber.cpp
index 933505a6bfa28fb0104c4ff9ef273cebaf63a03a..c9ae470decf9dcdd690936270dfa9002517722e0 100644 (file)
@@ -69,7 +69,10 @@ void InsetMathNumber::octave(OctaveStream & os) const
 
 void InsetMathNumber::mathmlize(MathStream & os) const
 {
-       os << "<mi> " << str_ << " </mi>";
+       if (os.inText())
+               os << str_;
+       else
+               os << "<mn>" << str_ << "</mn>";
 }