From: Enrico Forestieri Date: Tue, 4 Nov 2014 20:36:10 +0000 (+0100) Subject: Fix bug #9319: Problems with space inside math and textrm. X-Git-Tag: 2.2.0alpha1~1570 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d1858b89d0828c3fe8f4e898f609aaed93333d33;p=features.git Fix bug #9319: Problems with space inside math and textrm. --- 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); }