]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpace.cpp
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / mathed / InsetMathSpace.cpp
index fcef36c1a1ca50eb829661e2ac099e66f8f063ed..f4c4d25f1ce117ab5fdbe58df7b9e7b0ea3109a2 100644 (file)
@@ -209,10 +209,11 @@ void InsetMathSpace::mathmlize(MathMLStream & ms) const
                l = ss.str() + "px";
        }
 
-       ms << "<" << from_ascii(ms.namespacedTag("mspace"));
+       std::string attr;
        if (!l.empty())
-               ms << " width=\"" << from_ascii(l) << "\"";
-       ms << " />";
+               attr = "width=\"" + l + "\"";
+
+       ms << CTag("mspace", attr);
 }