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

This commit is contained in:
Enrico Forestieri 2014-11-04 21:36:10 +01:00
parent 77b0452a30
commit d1858b89d0

View 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);
}