]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetNewline.cpp
index 9ee9f4b8627364057025d9331c9960d5b560d414..4d0f7ef9da54466baa0f8f286a4c7217c87e6be4 100644 (file)
@@ -19,6 +19,7 @@
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
+#include "output_xhtml.h"
 
 #include "frontends/Application.h"
 #include "frontends/FontMetrics.h"
@@ -32,7 +33,7 @@ using namespace std;
 
 namespace lyx {
 
-InsetNewline::InsetNewline()
+InsetNewline::InsetNewline() : Inset(0)
 {}
 
 
@@ -173,9 +174,10 @@ int InsetNewline::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-docstring InsetNewline::xhtml(odocstream & os, OutputParams const &) const
+docstring InsetNewline::xhtml(XHTMLStream & xs, OutputParams const &) const
 {
-       os << "<br />\n";
+       xs << CompTag("br");
+       xs.cr();
        return docstring();
 }