X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Finsets%2FInsetSpecialChar.cpp;h=91c13645b535af7e541e949f2c71748b8fce16b2;hb=12c7e7dde3851ad894380fd42ba741dd3d0cbcc7;hp=ef3826d97563b32125611b8e5a587a4a18884def;hpb=82c7e15e6444a8566a9b7b8053b830d03058383e;p=lyx.git diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index ef3826d975..91c13645b5 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 << XHTMLStream::NextRaw() << "…"; break; case MENU_SEPARATOR: - os << "⇒"; + xs << XHTMLStream::NextRaw() << "⇒"; break; case SLASH: - os << "⁄"; + xs << XHTMLStream::NextRaw() << "⁄"; break; case NOBREAKDASH: - os << '-'; + xs << '-'; break; } return docstring(); @@ -332,12 +333,6 @@ void InsetSpecialChar::validate(LaTeXFeatures & features) const } -bool InsetSpecialChar::isChar() const -{ - return true; -} - - bool InsetSpecialChar::isLetter() const { return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;