From: Richard Heck Date: Sat, 28 Nov 2009 20:33:19 +0000 (+0000) Subject: Fix InsetNewpage:
has to be within a block-level item. X-Git-Tag: 2.0.0~5002 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ce1566de1ba99a6c654a02c930a0e3ee8704771b;p=features.git Fix InsetNewpage:
has to be within a block-level item. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32223 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetNewpage.cpp b/src/insets/InsetNewpage.cpp index facea55146..35c5b0a5ac 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(XHTMLStream &, OutputParams const &) const +docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const { - return from_ascii("
\n"); + xs << CompTag("br"); + return docstring(); }