]> git.lyx.org Git - features.git/commitdiff
Fix InsetNewpage: <br /> has to be within a block-level item.
authorRichard Heck <rgheck@comcast.net>
Sat, 28 Nov 2009 20:33:19 +0000 (20:33 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 28 Nov 2009 20:33:19 +0000 (20:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32223 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNewpage.cpp

index facea55146ddbff44896b4fcad3ce6897f5c386e..35c5b0a5acac17f46bdf9f7bd81a65c120fe2e6d 100644 (file)
@@ -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("<br />\n");
+       xs << CompTag("br");
+       return docstring();
 }