HTML for special characters.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-31 20:49:21 +00:00
parent da26079578
commit ae69c7c63c
2 changed files with 15 additions and 0 deletions

View File

@ -160,4 +160,17 @@ void InsetMathSpecialChar::mathmlize(MathStream & ms) const
}
void InsetMathSpecialChar::htmlize(HtmlStream & ms) const
{
switch (char_) {
case '&':
ms << "&amp;";
break;
default:
ms.os().put(char_);
break;
}
}
} // namespace lyx

View File

@ -46,6 +46,8 @@ public:
void mathematica(MathematicaStream &) const;
///
void mathmlize(MathStream & ms) const;
///
void htmlize(HtmlStream & ms) const;
/// identifies SpecialChar insets
InsetMathSpecialChar const * asSpecialCharInset() const { return this; }
///