X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNumber.cpp;h=c9ae470decf9dcdd690936270dfa9002517722e0;hb=50b700938b37f560bfcbafb2a10051376789bd06;hp=a352c6f8618337922ea1347af76d36a7cadafb04;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git
diff --git a/src/mathed/InsetMathNumber.cpp b/src/mathed/InsetMathNumber.cpp
index a352c6f861..c9ae470dec 100644
--- a/src/mathed/InsetMathNumber.cpp
+++ b/src/mathed/InsetMathNumber.cpp
@@ -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.
*/
@@ -15,10 +15,10 @@
#include "MathStream.h"
#include "MathSupport.h"
+using namespace std;
-namespace lyx {
-using std::vector;
+namespace lyx {
InsetMathNumber::InsetMathNumber(docstring const & s)
: str_(s)
@@ -69,7 +69,10 @@ void InsetMathNumber::octave(OctaveStream & os) const
void InsetMathNumber::mathmlize(MathStream & os) const
{
- os << " " << str_ << " ";
+ if (os.inText())
+ os << str_;
+ else
+ os << "" << str_ << "";
}