]> git.lyx.org Git - lyx.git/commitdiff
Fix reading of math macros
authorDekel Tsur <dekelts@tau.ac.il>
Wed, 18 Dec 2002 10:57:45 +0000 (10:57 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Wed, 18 Dec 2002 10:57:45 +0000 (10:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5853 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_parser.C

index f07af65f98998e6d53030aaaa30eea59a4a83d4b..dc61341945ced2d952feceacd05f298e88f71da4 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-17  Dekel Tsur  <dekelts@tau.ac.il>
+
+       * math_parser.C (tokenize): Fix macro reading.
+
 2002-12-01  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * several files: ws changes
index ddadf94e19d2699c343bd9853abc278e740afcb9..378ed0d64fd85401ae86259d489cbc84ff2ac348 100644 (file)
@@ -403,6 +403,9 @@ void Parser::tokenize(istream & is)
                        break;
                }
        }
+       // Remove the space after \end_inset
+       if (is.get(c) && c != ' ')
+               is.unget();
 
        // tokenize buffer
        tokenize(s);