X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNumber.cpp;h=5237cebab65a95747b5a67c1489950ee0e133ae7;hb=62af7ee772f16f154225d2d0b65d77f4376b6001;hp=c9ae470decf9dcdd690936270dfa9002517722e0;hpb=50b700938b37f560bfcbafb2a10051376789bd06;p=lyx.git diff --git a/src/mathed/InsetMathNumber.cpp b/src/mathed/InsetMathNumber.cpp index c9ae470dec..5237cebab6 100644 --- a/src/mathed/InsetMathNumber.cpp +++ b/src/mathed/InsetMathNumber.cpp @@ -15,6 +15,8 @@ #include "MathStream.h" #include "MathSupport.h" +#include "MetricsInfo.h" + using namespace std; @@ -69,10 +71,13 @@ void InsetMathNumber::octave(OctaveStream & os) const void InsetMathNumber::mathmlize(MathStream & os) const { - if (os.inText()) - os << str_; - else - os << "" << str_ << ""; + os << "" << str_ << ""; +} + + +void InsetMathNumber::htmlize(HtmlStream & os) const +{ + os << str_; }