mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
da26079578
commit
ae69c7c63c
@ -160,4 +160,17 @@ void InsetMathSpecialChar::mathmlize(MathStream & ms) const
|
||||
}
|
||||
|
||||
|
||||
void InsetMathSpecialChar::htmlize(HtmlStream & ms) const
|
||||
{
|
||||
switch (char_) {
|
||||
case '&':
|
||||
ms << "&";
|
||||
break;
|
||||
default:
|
||||
ms.os().put(char_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -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; }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user