]> git.lyx.org Git - features.git/commitdiff
Fix bug #9319: Problems with space inside math and textrm.
authorEnrico Forestieri <forenr@lyx.org>
Tue, 4 Nov 2014 20:36:10 +0000 (21:36 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 4 Nov 2014 20:36:10 +0000 (21:36 +0100)
src/mathed/InsetMathSpace.cpp

index f961224c0c09b7cb1528d42d306d61f33721599f..2a3b6f45cb477657a4e988da12b4991e14d0be46 100644 (file)
@@ -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);
 }