]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetNewline.cpp
index f5670fb44c2b49fb508934ee1e1b958c5c14ec12..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,6 +174,14 @@ int InsetNewline::docbook(odocstream & os, OutputParams const &) const
 }
 
 
+docstring InsetNewline::xhtml(XHTMLStream & xs, OutputParams const &) const
+{
+       xs << html::CompTag("br");
+       xs.cr();
+       return docstring();
+}
+
+
 void InsetNewline::draw(PainterInfo & pi, int x, int y) const
 {
        FontInfo font;