]> git.lyx.org Git - features.git/commitdiff
Get math within text working for XHTML export.
authorRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 21:18:37 +0000 (21:18 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 21:18:37 +0000 (21:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38193 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathEnsureMath.cpp
src/mathed/InsetMathEnsureMath.h

index 3fdb3fbba9beeff3cacae91ca710a0b9d05c284a..7221322db0fd054c3275b1a284fbb4831a41e7fb 100644 (file)
@@ -72,7 +72,19 @@ void InsetMathEnsureMath::write(WriteStream & os) const
 
 void InsetMathEnsureMath::mathmlize(MathStream & os) const
 {
+       os << "[EM]";
+       SetMode mathmode(os, false);
        os << cell(0);
+       os << "[/EM]";
+}
+
+
+void InsetMathEnsureMath::htmlize(HtmlStream & os) const
+{
+       os << "[EM]";
+       SetHTMLMode mathmode(os, false);
+       os << cell(0);
+       os << "[/EM]";
 }
 
 
index ccc136a157c93cea04c95c232ecb9fa988b5be5c..83edf47482022c6e122ceaf35337d30899956e6c 100644 (file)
@@ -38,6 +38,8 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void infoize(odocstream & os) const;
        ///
        InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; }