]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
Fix display and export of some latex macros
[lyx.git] / src / mathed / InsetMathSpace.cpp
index e6aa834ea839c4f6ff4792cb67ea728075ec3426..4cf1b944f878d166e0cf7ac4ef95560289e01169 100644 (file)
@@ -266,7 +266,9 @@ void InsetMathSpace::normalize(NormalStream & os) const
 
 void InsetMathSpace::write(WriteStream & os) const
 {
-       // no MathEnsurer - all kinds work in text and math mode
+       // All kinds work in text and math mode, so simply suspend
+       // writing a possibly pending mode closing brace.
+       MathEnsurer ensurer(os, false);
        if (space_info[space_].escape)
                os << '\\';
        os << space_info[space_].name.c_str();