]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
Account for old versions of Pygments
[lyx.git] / src / mathed / InsetMathNumber.cpp
index 45e73220fc6d03f20eb6700b4d98866cbd6dd200..5237cebab65a95747b5a67c1489950ee0e133ae7 100644 (file)
@@ -15,6 +15,8 @@
 #include "MathStream.h"
 #include "MathSupport.h"
 
+#include "MetricsInfo.h"
+
 using namespace std;
 
 
@@ -69,10 +71,7 @@ void InsetMathNumber::octave(OctaveStream & os) const
 
 void InsetMathNumber::mathmlize(MathStream & os) const
 {
-       if (os.inText())
-               os << str_;
-       else
-               os << "<mn>" << str_ << "</mn>";
+       os << "<mn>" << str_ << "</mn>";
 }