diff --git a/src/insets/InsetNewpage.cpp b/src/insets/InsetNewpage.cpp index b80ba3c4c5..6c0fd75609 100644 --- a/src/insets/InsetNewpage.cpp +++ b/src/insets/InsetNewpage.cpp @@ -18,6 +18,7 @@ #include "Lexer.h" #include "MetricsInfo.h" #include "OutputParams.h" +#include "output_xhtml.h" #include "Text.h" #include "TextMetrics.h" @@ -247,9 +248,10 @@ int InsetNewpage::docbook(odocstream & os, OutputParams const &) const } -docstring InsetNewpage::xhtml(odocstream & os, OutputParams const &) const +docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const { - os << "
\n"; + xs << CompTag("br"); + xs.cr(); return docstring(); } diff --git a/src/insets/InsetNewpage.h b/src/insets/InsetNewpage.h index 05bfc8413e..fead3f37e7 100644 --- a/src/insets/InsetNewpage.h +++ b/src/insets/InsetNewpage.h @@ -69,7 +69,7 @@ private: /// int docbook(odocstream &, OutputParams const &) const; /// - docstring xhtml(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// void read(Lexer & lex); ///