]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.cpp
Substack support for XHTML.
[lyx.git] / src / mathed / CommandInset.cpp
index be67c3d52e63d0316361b711ff0b11a1d3bbb532..e09604e241c9f2973f1cde97d07172c05a9d343d 100644 (file)
@@ -14,7 +14,6 @@
 #include "MathData.h"
 #include "MathStream.h"
 #include "DispatchResult.h"
-#include "FuncRequest.h"
 
 #include <sstream>
 
@@ -65,8 +64,9 @@ void CommandInset::draw(PainterInfo & pi, int x, int y) const
 
 void CommandInset::write(WriteStream & os) const
 {
+       ModeSpecifier specifier(os, currentMode(), lockedMode(), asciiOnly());
        MathEnsurer ensurer(os, needs_math_mode_);
-       os << '\\' << name_.c_str();
+       os << '\\' << name_;
        if (cell(1).size())
                os << '[' << cell(1) << ']';
        os << '{' << cell(0) << '}';