]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNewline.cpp
index 7cb2e70e1f9b5891cc1ec88ccbd1cfbb68da20ba..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"
@@ -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();
 }