]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
Fix use of std::regex_match
[lyx.git] / src / insets / InsetNewpage.cpp
index 145cec96c6ed2696700d4b0aa691c64e36149df0..6e9f34211fb62803496086b01795403935ed37e3 100644 (file)
@@ -19,7 +19,7 @@
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
-#include "output_xhtml.h"
+#include "xml.h"
 #include "texstream.h"
 #include "Text.h"
 #include "TextMetrics.h"
@@ -248,16 +248,15 @@ int InsetNewpage::plaintext(odocstringstream & os,
 }
 
 
-int InsetNewpage::docbook(odocstream & os, OutputParams const &) const
+void InsetNewpage::docbook(XMLStream & os, OutputParams const &) const
 {
-       os << '\n';
-       return 0;
+       os << xml::CR();
 }
 
 
-docstring InsetNewpage::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring InsetNewpage::xhtml(XMLStream & xs, OutputParams const &) const
 {
-       xs << html::CompTag("br");
+       xs << xml::CompTag("br");
        return docstring();
 }