commit d1858b89d0828c3fe8f4e898f609aaed93333d33
Author: Enrico Forestieri <[email protected]>
Date: Tue Nov 4 21:36:10 2014 +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);
}