]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
tex2lyx: support for \item with opt arg in itemize environment
[lyx.git] / src / mathed / InsetMathSpace.cpp
index e53c62e6ee6747d9ab644b7e7f595f0e59fd3946..2a3b6f45cb477657a4e988da12b4991e14d0be46 100644 (file)
@@ -273,24 +273,24 @@ 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);
 }
 
 
 InsetSpaceParams InsetMathSpace::params() const
 {
-       LASSERT(space_info[space_].visible, /**/);
        InsetSpaceParams isp(true);
+       LASSERT(space_info[space_].visible, return isp);
        isp.kind = space_info[space_].kind;
        isp.length = GlueLength(length_);
        return isp;
 }
 
 
-docstring InsetMathSpace::contextMenuName() const
+string InsetMathSpace::contextMenuName() const
 {
-       return from_ascii("context-mathspace");
+       return "context-mathspace";
 }