diff --git a/src/insets/InsetVSpace.cpp b/src/insets/InsetVSpace.cpp index bcd11091f1..d1e5a19660 100644 --- a/src/insets/InsetVSpace.cpp +++ b/src/insets/InsetVSpace.cpp @@ -23,6 +23,7 @@ #include "Lexer.h" #include "MetricsInfo.h" #include "OutputParams.h" +#include "output_xhtml.h" #include "Text.h" #include "support/debug.h" @@ -233,14 +234,16 @@ int InsetVSpace::docbook(odocstream & os, OutputParams const &) const } -docstring InsetVSpace::xhtml(odocstream & os, OutputParams const &) const +docstring InsetVSpace::xhtml(XHTMLStream & xs, OutputParams const &) const { string len = space_.asHTMLLength(); if (len.empty()) // we didn't understand it - os << "
\n"; - else - os << "
\n"; + xs << CompTag("br"); + else { + string const attr = "style='height:" + len + "'"; + xs << StartTag("div", attr, true) << EndTag("div"); + } return docstring(); } diff --git a/src/insets/InsetVSpace.h b/src/insets/InsetVSpace.h index fcf61f2a98..990e089f7f 100644 --- a/src/insets/InsetVSpace.h +++ b/src/insets/InsetVSpace.h @@ -51,7 +51,7 @@ private: /// int docbook(odocstream &, OutputParams const &) const; /// - docstring xhtml(odocstream &, OutputParams const &) const; + docstring xhtml(XHTMLStream &, OutputParams const &) const; /// void read(Lexer & lex); ///