Get InsetVSpace working again.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32134 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-21 23:02:59 +00:00
parent 4b2fb6a5c0
commit 1cce8edf32
2 changed files with 8 additions and 5 deletions

View File

@ -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 << "<br />\n";
else
os << "<div style='height:" << from_ascii(len) << "'></div>\n";
xs << CompTag("br");
else {
string const attr = "style='height:" + len + "'";
xs << StartTag("div", attr, true) << EndTag("div");
}
return docstring();
}

View File

@ -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);
///