]> git.lyx.org Git - features.git/commitdiff
Come to think of it, we should do this differently: the way it's done
authorRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:02:58 +0000 (22:02 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:02:58 +0000 (22:02 +0000)
with InsetVSpace. Typically, this will appear on a line by itself, and
we do not really want <div><br /></div>.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32205 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNewpage.cpp

index 6c0fd75609fbfe760578c0aeb45b0f3b631ba48c..facea55146ddbff44896b4fcad3ce6897f5c386e 100644 (file)
@@ -18,7 +18,6 @@
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
-#include "output_xhtml.h"
 #include "Text.h"
 #include "TextMetrics.h"
 
@@ -248,11 +247,9 @@ int InsetNewpage::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring InsetNewpage::xhtml(XHTMLStream &, OutputParams const &) const
 {
-       xs << CompTag("br");
-       xs.cr();
-       return docstring();
+       return from_ascii("<br />\n");
 }