]> git.lyx.org Git - features.git/commitdiff
Restore XHTML for InsetSpecialChar.
authorRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:04:41 +0000 (22:04 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:04:41 +0000 (22:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32206 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetSpecialChar.cpp
src/insets/InsetSpecialChar.h

index ef3826d97563b32125611b8e5a587a4a18884def..650f307769f2bfef28bb025645870b86bec0a269 100644 (file)
@@ -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 << "&hellip;";
+               xs << "&hellip;";
                break;
        case MENU_SEPARATOR:
-               os << "&rArr;";
+               xs << "&rArr;";
                break;
        case SLASH:
-               os << "&frasl;";
+               xs << "&frasl;";
                break;
        case NOBREAKDASH:
-               os << '-';
+               xs << '-';
                break;
        }
        return docstring();
index 8eea5be8ad98e25d5c6352132dac4fc788c572d1..fe24dc8553197789df74c6c292f61775d80f1f5f 100644 (file)
@@ -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;
        ///