From d1858b89d0828c3fe8f4e898f609aaed93333d33 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 4 Nov 2014 21:36:10 +0100 Subject: [PATCH] Fix bug #9319: Problems with space inside math and textrm. --- src/mathed/InsetMathSpace.cpp | 2 +- 1 file changed, 1 insertion(+), 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); } -- 2.39.2