From: Richard Heck Date: Fri, 1 Apr 2011 21:18:37 +0000 (+0000) Subject: Get math within text working for XHTML export. X-Git-Tag: 2.0.0~290 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=707d369d72e0bf8da9ab3f405b20aeafe68f9758;p=features.git Get math within text working for XHTML export. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38193 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathEnsureMath.cpp b/src/mathed/InsetMathEnsureMath.cpp index 3fdb3fbba9..7221322db0 100644 --- a/src/mathed/InsetMathEnsureMath.cpp +++ b/src/mathed/InsetMathEnsureMath.cpp @@ -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]"; } diff --git a/src/mathed/InsetMathEnsureMath.h b/src/mathed/InsetMathEnsureMath.h index ccc136a157..83edf47482 100644 --- a/src/mathed/InsetMathEnsureMath.h +++ b/src/mathed/InsetMathEnsureMath.h @@ -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; }