From 1cce8edf32dae165558eec41ac309961adb5581d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 21 Nov 2009 23:02:59 +0000 Subject: [PATCH] Get InsetVSpace working again. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32134 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetVSpace.cpp | 11 +++++++---- src/insets/InsetVSpace.h | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) 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); /// -- 2.39.2