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);
}
}
-void InsetMathSpace::write(WriteStream & os) const
+void InsetMathSpace::write(TeXMathStream & os) const
{
// All kinds work in text and math mode, so simply suspend
// writing a possibly pending mode closing brace.
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "mathspace") {
MathData ar;
- Buffer * buf = buffer_;
if (createInsetMath_fromDialogStr(cmd.argument(), ar)) {
+ Buffer * buf = buffer_;
cur.recordUndo();
*this = *ar[0].nucleus()->asSpaceInset();
buffer_ = buf;