]> git.lyx.org Git - features.git/commitdiff
Fix bug #7970: space disappears from equation when reopening LyX file.
authorEnrico Forestieri <forenr@lyx.org>
Tue, 6 Jan 2015 18:57:54 +0000 (19:57 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 6 Jan 2015 18:57:54 +0000 (19:57 +0100)
src/mathed/MathParser.cpp
status.21x

index e740d23db84eb6ea443e56195ed5984a598c3f1a..20c1ac67a51bbc3a8ee5a73bb8111a7576424949 100644 (file)
@@ -2068,7 +2068,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                        //}
                                        for (InsetMath::idx_type i = start; i < at->nargs(); ++i) {
                                                parse(at.nucleus()->cell(i), FLAG_ITEM, m);
-                                               skipSpaces();
+                                               if (mode == InsetMath::MATH_MODE)
+                                                       skipSpaces();
                                        }
                                        cell->push_back(at);
                                }
index 05002a076d759f984bf88e6ddd0171930f5cb93d..0facb6a257b3e4bfc935badcbfc2392736e7a8e6 100644 (file)
@@ -111,6 +111,8 @@ What's new
 
 - Protect insets when needed in subfloat captions (bug 9346).
 
+- Do not swallow spaces in text-in-math mode (bug 7970).
+
 
 * LYX2LYX