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
This commit is contained in:
Richard Heck 2011-04-01 21:18:37 +00:00
parent 17f1b1d04a
commit 707d369d72
2 changed files with 14 additions and 0 deletions

View File

@ -72,7 +72,19 @@ void InsetMathEnsureMath::write(WriteStream & os) const
void InsetMathEnsureMath::mathmlize(MathStream & os) const void InsetMathEnsureMath::mathmlize(MathStream & os) const
{ {
os << "[EM]";
SetMode mathmode(os, false);
os << cell(0); os << cell(0);
os << "[/EM]";
}
void InsetMathEnsureMath::htmlize(HtmlStream & os) const
{
os << "[EM]";
SetHTMLMode mathmode(os, false);
os << cell(0);
os << "[/EM]";
} }

View File

@ -38,6 +38,8 @@ public:
/// ///
void mathmlize(MathStream &) const; void mathmlize(MathStream &) const;
/// ///
void htmlize(HtmlStream &) const;
///
void infoize(odocstream & os) const; void infoize(odocstream & os) const;
/// ///
InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; } InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; }