From 40fcb745a9731d062b24e2bbb149a3aec90c5684 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 25 Nov 2009 22:07:17 +0000 Subject: [PATCH] Restore XHTML output for InsetLine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32207 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLine.cpp | 6 ++++-- src/insets/InsetLine.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp index 78eb62ea22..b2fc3b6ab0 100644 --- a/src/insets/InsetLine.cpp +++ b/src/insets/InsetLine.cpp @@ -17,6 +17,7 @@ #include "LaTeXFeatures.h" #include "MetricsInfo.h" #include "OutputParams.h" +#include "output_xhtml.h" #include "Text.h" #include "frontends/Painter.h" @@ -85,9 +86,10 @@ int InsetLine::docbook(odocstream & os, OutputParams const &) const } -docstring InsetLine::xhtml(odocstream & os, OutputParams const &) const +docstring InsetLine::xhtml(XHTMLStream & xs, OutputParams const &) const { - os << "
\n"; + xs << CompTag("hr"); + xs.cr(); return docstring(); } diff --git a/src/insets/InsetLine.h b/src/insets/InsetLine.h index 22c3f7db2f..f9e289528c 100644 --- a/src/insets/InsetLine.h +++ b/src/insets/InsetLine.h @@ -35,7 +35,7 @@ public: /// int docbook(odocstream &, OutputParams const &) const; /// - docstring xhtml(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// void read(Lexer & lex); /// -- 2.39.2