]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
Restore XHTML output for InsetListings.
[lyx.git] / 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();
 }