]> git.lyx.org Git - features.git/commitdiff
fix #3130
authorAndré Pönitz <poenitz@gmx.net>
Fri, 30 Mar 2007 19:28:03 +0000 (19:28 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 30 Mar 2007 19:28:03 +0000 (19:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17652 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathSymbol.C

index 259047ad49ff2750ca1860e54fb531066cb51f23..9f1e654998b35eca9c4a5dd81099034421c4f4fb 100644 (file)
@@ -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);
 }