]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNewline.cpp
index 9ee9f4b8627364057025d9331c9960d5b560d414..c74d16f89a593286272a32c529b9176948c72fa3 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 << html::CompTag("br");
+       xs.cr();
        return docstring();
 }