]> git.lyx.org Git - features.git/commitdiff
Restore XHTML output for InsetNewpage.
authorRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:00:29 +0000 (22:00 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 25 Nov 2009 22:00:29 +0000 (22:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32204 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNewpage.cpp
src/insets/InsetNewpage.h

index b80ba3c4c5275c4e453f8d398cbadf62d086c0cb..6c0fd75609fbfe760578c0aeb45b0f3b631ba48c 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(odocstream & os, OutputParams const &) const
+docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const
 {
-       os << "<br />\n";
+       xs << CompTag("br");
+       xs.cr();
        return docstring();
 }
 
index 05bfc8413ec1b9436d0f3c51f87ad95e752d92a8..fead3f37e788d86a48bfb517c3f8912f45eea200 100644 (file)
@@ -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);
        ///