mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
4b2fb6a5c0
commit
1cce8edf32
@ -23,6 +23,7 @@
|
|||||||
#include "Lexer.h"
|
#include "Lexer.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
|
#include "output_xhtml.h"
|
||||||
#include "Text.h"
|
#include "Text.h"
|
||||||
|
|
||||||
#include "support/debug.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();
|
string len = space_.asHTMLLength();
|
||||||
if (len.empty())
|
if (len.empty())
|
||||||
// we didn't understand it
|
// we didn't understand it
|
||||||
os << "<br />\n";
|
xs << CompTag("br");
|
||||||
else
|
else {
|
||||||
os << "<div style='height:" << from_ascii(len) << "'></div>\n";
|
string const attr = "style='height:" + len + "'";
|
||||||
|
xs << StartTag("div", attr, true) << EndTag("div");
|
||||||
|
}
|
||||||
return docstring();
|
return docstring();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ private:
|
|||||||
///
|
///
|
||||||
int docbook(odocstream &, OutputParams const &) const;
|
int docbook(odocstream &, OutputParams const &) const;
|
||||||
///
|
///
|
||||||
docstring xhtml(odocstream &, OutputParams const &) const;
|
docstring xhtml(XHTMLStream &, OutputParams const &) const;
|
||||||
///
|
///
|
||||||
void read(Lexer & lex);
|
void read(Lexer & lex);
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user