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