]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewpage.cpp
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetNewpage.cpp
index c2c78251f9b295c5447dd80b56d0529c76cf7db0..e014e50aba766917e5f4c64ea3a284f9a1d7bbc4 100644 (file)
@@ -79,8 +79,6 @@ void InsetNewpageParams::read(Lexer & lex)
                kind = InsetNewpageParams::CLEARDOUBLEPAGE;
        else
                lex.printError("Unknown kind");
-
-       lex >> "\\end_inset";
 }
 
 
@@ -94,6 +92,7 @@ void InsetNewpage::write(ostream & os) const
 void InsetNewpage::read(Lexer & lex)
 {
        params_.read(lex);
+       lex >> "\\end_inset";
 }
 
 
@@ -248,6 +247,13 @@ int InsetNewpage::docbook(odocstream & os, OutputParams const &) const
 }
 
 
+docstring InsetNewpage::xhtml(odocstream & os, OutputParams const &) const
+{
+       os << "<br />\n";
+       return docstring();
+}
+
+
 docstring InsetNewpage::contextMenu(BufferView const &, int, int) const
 {
        return from_ascii("context-newpage");