]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNumber.cpp
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / InsetMathNumber.cpp
index a352c6f8618337922ea1347af76d36a7cadafb04..5a35415786988fc0bbfcc06f9c4387784124775f 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "MathStream.h"
 #include "MathSupport.h"
 
+#include "MetricsInfo.h"
+
+using namespace std;
 
-namespace lyx {
 
-using std::vector;
+namespace lyx {
 
 InsetMathNumber::InsetMathNumber(docstring const & s)
        : str_(s)
@@ -67,9 +69,17 @@ void InsetMathNumber::octave(OctaveStream & os) const
 }
 
 
-void InsetMathNumber::mathmlize(MathStream & os) const
+void InsetMathNumber::mathmlize(MathStream & ms) const
+{
+       ms << "<" << from_ascii(ms.namespacedTag("mn")) << ">"
+          << str_
+          << "</" << from_ascii(ms.namespacedTag("mn")) << ">";
+}
+
+
+void InsetMathNumber::htmlize(HtmlStream & os) const
 {
-       os << "<mi> " << str_ << " </mi>";
+       os << str_;
 }