commit 855f24e063a7b28f536a1bbced246276f322cbbd
Author: Enrico Forestieri <for...@lyx.org>
Date:   Tue Jan 6 21:50:58 2015 +0100

    Fix bug #9319: Problems with space inside math and textrm.

diff --git a/src/mathed/InsetMathSpace.cpp b/src/mathed/InsetMathSpace.cpp
index f961224..2a3b6f4 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 0facb6a..409aa2f 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
 

Reply via email to