From 8ea3d1f130513eaf54e6a9ad49619059cd0052b9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 29 Jun 2016 21:57:35 -0400 Subject: [PATCH] Don't be so cute with VSpace: We just output it inline now for XHTML. Fixes bug #8154. --- src/insets/InsetVSpace.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetVSpace.cpp b/src/insets/InsetVSpace.cpp index f621172fe2..7edbebf3b4 100644 --- a/src/insets/InsetVSpace.cpp +++ b/src/insets/InsetVSpace.cpp @@ -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(); }