diff --git a/src/mathed/InsetMathSymbol.C b/src/mathed/InsetMathSymbol.C index 259047ad49..9f1e654998 100644 --- a/src/mathed/InsetMathSymbol.C +++ b/src/mathed/InsetMathSymbol.C @@ -215,6 +215,8 @@ void InsetMathSymbol::octave(OctaveStream & os) const void InsetMathSymbol::write(WriteStream & os) const { os << '\\' << name(); + if (name().size() == 1 && name()[0] < '0') // $,#, etc + return; os.pendingSpace(true); }