]> git.lyx.org Git - features.git/commitdiff
Fix bug #6756: import problem with \ (no space following)
authorEnrico Forestieri <forenr@lyx.org>
Wed, 9 Jun 2010 20:13:11 +0000 (20:13 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 9 Jun 2010 20:13:11 +0000 (20:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34638 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.cpp

index 76f3981c3722dad1abf845fd1d9ea9f31fd4fc76..90d7c9349a8076aacdbd77c3e8e016d97dcaec7e 100644 (file)
@@ -614,6 +614,8 @@ void Parser::tokenize(docstring const & buffer)
                                if (!is) {
                                        error("unexpected end of input");
                                } else {
+                                       if (c == '\n')
+                                               c = ' ';
                                        docstring s(1, c);
                                        if (catcode(c) == catLetter) {
                                                // collect letters