]> git.lyx.org Git - features.git/commitdiff
Don't be so cute with VSpace: We just output it inline now for
authorRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 01:57:35 +0000 (21:57 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 01:57:35 +0000 (21:57 -0400)
XHTML.

Fixes bug #8154.

src/insets/InsetVSpace.cpp

index f621172fe2b5ba28475212002d26c7250fbdf6c7..7edbebf3b4e8eaac03b9b11d05f0112bd89589ce 100644 (file)
@@ -232,14 +232,12 @@ int InsetVSpace::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-docstring InsetVSpace::xhtml(XHTMLStream &, OutputParams const &) const
+docstring InsetVSpace::xhtml(XHTMLStream & os, OutputParams const &) const
 {
-       odocstringstream ods;
-       XHTMLStream xds(ods);
        string const len = space_.asHTMLLength();
        string const attr = "style='height:" + (len.empty() ? "1em" : len) + "'";
-       xds << html::StartTag("div", attr, true) << html::EndTag("div");
-       return ods.str();
+       os << html::StartTag("div", attr, true) << html::EndTag("div");
+       return docstring();
 }