]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNewline.cpp
index 7ba4b72a146aeeae853757ff9b0d7c57462a9c44..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,11 @@ int InsetNewline::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-void 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();
 }