From 69179c08e7d66064e04170a2d9f8c9575f4e8286 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 6 Jan 2015 19:57:54 +0100 Subject: [PATCH] Fix bug #7970: space disappears from equation when reopening LyX file. --- src/mathed/MathParser.cpp | 3 ++- status.21x | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index e740d23db8..20c1ac67a5 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -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); } diff --git a/status.21x b/status.21x index 05002a076d..0facb6a257 100644 --- a/status.21x +++ b/status.21x @@ -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 -- 2.39.5