mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 00:20:43 +00:00
Restore InsetNewline.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32110 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c71a1d9185
commit
6d4db0ee44
@ -19,6 +19,7 @@
|
|||||||
#include "Lexer.h"
|
#include "Lexer.h"
|
||||||
#include "MetricsInfo.h"
|
#include "MetricsInfo.h"
|
||||||
#include "OutputParams.h"
|
#include "OutputParams.h"
|
||||||
|
#include "output_xhtml.h"
|
||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
#include "frontends/FontMetrics.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();
|
return docstring();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,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);
|
||||||
///
|
///
|
||||||
|
@ -60,6 +60,9 @@ struct EndTag {
|
|||||||
// Tags like <img />
|
// Tags like <img />
|
||||||
struct CompTag {
|
struct CompTag {
|
||||||
///
|
///
|
||||||
|
CompTag(std::string const & tag)
|
||||||
|
: tag_(tag) {}
|
||||||
|
///
|
||||||
CompTag(std::string const & tag, std::string const & attr)
|
CompTag(std::string const & tag, std::string const & attr)
|
||||||
: tag_(tag), attr_(attr) {}
|
: tag_(tag), attr_(attr) {}
|
||||||
/// <tag_ attr_ />
|
/// <tag_ attr_ />
|
||||||
|
Loading…
Reference in New Issue
Block a user