From: Richard Heck Date: Wed, 25 Nov 2009 22:04:41 +0000 (+0000) Subject: Restore XHTML for InsetSpecialChar. X-Git-Tag: 2.0.0~5014 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ceedc90c55dbaf73b9fa3b437b549be81a6ebe56;p=features.git Restore XHTML for InsetSpecialChar. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32206 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index ef3826d975..650f307769 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -19,6 +19,7 @@ #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" +#include "output_xhtml.h" #include "frontends/FontMetrics.h" #include "frontends/Painter.h" @@ -291,26 +292,26 @@ int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const } -docstring InsetSpecialChar::xhtml(odocstream & os, OutputParams const &) const +docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const { switch (kind_) { case HYPHENATION: case LIGATURE_BREAK: break; case END_OF_SENTENCE: - os << '.'; + xs << '.'; break; case LDOTS: - os << "…"; + xs << "…"; break; case MENU_SEPARATOR: - os << "⇒"; + xs << "⇒"; break; case SLASH: - os << "⁄"; + xs << "⁄"; break; case NOBREAKDASH: - os << '-'; + xs << '-'; break; } return docstring(); diff --git a/src/insets/InsetSpecialChar.h b/src/insets/InsetSpecialChar.h index 8eea5be8ad..fe24dc8553 100644 --- a/src/insets/InsetSpecialChar.h +++ b/src/insets/InsetSpecialChar.h @@ -65,7 +65,7 @@ public: /// int docbook(odocstream &, OutputParams const &) const; /// - docstring xhtml(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// the string that is passed to the TOC void tocString(odocstream &) const; ///