Restore InsetNewline.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32110 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-19 23:04:10 +00:00
parent c71a1d9185
commit 6d4db0ee44
3 changed files with 8 additions and 3 deletions

View File

@ -19,6 +19,7 @@
#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
#include "output_xhtml.h"
#include "frontends/Application.h"
#include "frontends/FontMetrics.h"
@ -173,9 +174,10 @@ int InsetNewline::docbook(odocstream & os, OutputParams const &) const
}
docstring InsetNewline::xhtml(odocstream & os, OutputParams const &) const
docstring InsetNewline::xhtml(XHTMLStream & xs, OutputParams const &) const
{
os << "<br />\n";
xs << CompTag("br");
xs.cr();
return docstring();
}

View File

@ -66,7 +66,7 @@ private:
///
int docbook(odocstream &, OutputParams const &) const;
///
docstring xhtml(odocstream &, OutputParams const &) const;
docstring xhtml(XHTMLStream &, OutputParams const &) const;
///
void read(Lexer & lex);
///

View File

@ -60,6 +60,9 @@ struct EndTag {
// Tags like <img />
struct CompTag {
///
CompTag(std::string const & tag)
: tag_(tag) {}
///
CompTag(std::string const & tag, std::string const & attr)
: tag_(tag), attr_(attr) {}
/// <tag_ attr_ />