From 855f24e063a7b28f536a1bbced246276f322cbbd Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 6 Jan 2015 21:50:58 +0100 Subject: [PATCH] Fix bug #9319: Problems with space inside math and textrm. --- src/mathed/InsetMathSpace.cpp | 2 +- status.21x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathSpace.cpp b/src/mathed/InsetMathSpace.cpp index f961224c0c..2a3b6f45cb 100644 --- a/src/mathed/InsetMathSpace.cpp +++ b/src/mathed/InsetMathSpace.cpp @@ -273,7 +273,7 @@ void InsetMathSpace::write(WriteStream & os) const os << space_info[space_].name.c_str(); if (space_info[space_].custom) os << '{' << length_.asLatexString().c_str() << '}'; - else if (space_info[space_].escape && space_info[space_].name != " ") + else if (space_info[space_].escape && space_info[space_].name.length() > 1) os.pendingSpace(true); } diff --git a/status.21x b/status.21x index 0facb6a257..409aa2fa3c 100644 --- a/status.21x +++ b/status.21x @@ -113,6 +113,8 @@ What's new - Do not swallow spaces in text-in-math mode (bug 7970). +- Do not insert a protected space after some math-spaces (bug 9319). + * LYX2LYX -- 2.39.5