]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNewpage.cpp
index ea71596c723a70b4ff341dee8b320273b3fa09a4..52e20d69e9e5afa9d8531288c8b1bf4719c4684a 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"
 
@@ -34,12 +35,12 @@ using namespace std;
 
 namespace lyx {
 
-InsetNewpage::InsetNewpage()
+       InsetNewpage::InsetNewpage() : Inset(0)
 {}
 
 
 InsetNewpage::InsetNewpage(InsetNewpageParams const & params)
-       : params_(params)
+       : Inset(0), params_(params)
 {}
 
 
@@ -247,10 +248,10 @@ int InsetNewpage::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-int InsetNewpage::xhtml(odocstream & os, OutputParams const &) const
+docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const
 {
-       os << "<br />\n";
-       return 0;
+       xs << html::CompTag("br");
+       return docstring();
 }