]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSpecialChar.cpp
Substack support for XHTML.
[lyx.git] / src / mathed / InsetMathSpecialChar.cpp
index b32c2e2302785ef4933ea05869292970d8e1e3bc..a1f9dd40e9046c683d50b95f9985f809644c0fab 100644 (file)
@@ -147,7 +147,20 @@ void InsetMathSpecialChar::octave(OctaveStream & os) const
 }
 
 
-docstring InsetMathSpecialChar::mathmlize(MathStream & ms) const
+void InsetMathSpecialChar::mathmlize(MathStream & ms) const
+{
+       switch (char_) {
+       case '&':
+               ms << "&amp;";
+               break;
+       default:
+               ms.os().put(char_);
+               break;
+       }
+}
+
+
+void InsetMathSpecialChar::htmlize(HtmlStream & ms) const
 {
        switch (char_) {
        case '&':
@@ -157,7 +170,6 @@ docstring InsetMathSpecialChar::mathmlize(MathStream & ms) const
                ms.os().put(char_);
                break;
        }
-       return docstring();
 }