]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.cpp
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetVSpace.cpp
index 4cdd1ba6edd37dfbdca46ea36db7e0770bbbefc8..a6092cb8a337ba8f5098a4e143f5cece21a37521 100644 (file)
@@ -23,7 +23,7 @@
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
-#include "output_xhtml.h"
+#include "xml.h"
 #include "texstream.h"
 #include "Text.h"
 
@@ -224,18 +224,17 @@ int InsetVSpace::plaintext(odocstringstream & os,
 }
 
 
-int InsetVSpace::docbook(odocstream & os, OutputParams const &) const
+void InsetVSpace::docbook(XMLStream & xs, OutputParams const &) const
 {
-       os << '\n';
-       return 1;
+       xs << xml::CR();
 }
 
 
-docstring InsetVSpace::xhtml(XHTMLStream & os, OutputParams const &) const
+docstring InsetVSpace::xhtml(XMLStream & os, OutputParams const &) const
 {
        string const len = space_.asHTMLLength();
        string const attr = "style='height:" + (len.empty() ? "1em" : len) + "'";
-       os << html::StartTag("div", attr, true) << html::EndTag("div");
+       os << xml::StartTag("div", attr, true) << xml::EndTag("div");
        return docstring();
 }