X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetNewline.cpp;h=d22bb369ae8c45565b96e0d780e95f56948bade1;hb=bfddee97e191a853f0576f4fab3f095c4e9ce0de;hp=87a35def3585a2e67aea2786aeab1b3814f0a582;hpb=1ef605f6254ef3f3b8cec5440a2e67e6f23a707b;p=lyx.git diff --git a/src/insets/InsetNewline.cpp b/src/insets/InsetNewline.cpp index 87a35def35..d22bb369ae 100644 --- a/src/insets/InsetNewline.cpp +++ b/src/insets/InsetNewline.cpp @@ -142,7 +142,7 @@ ColorCode InsetNewline::ColorName() const } -int InsetNewline::latex(otexstream & os, OutputParams const & rp) const +void InsetNewline::latex(otexstream & os, OutputParams const & rp) const { switch (params_.kind) { case InsetNewlineParams::NEWLINE: @@ -158,7 +158,6 @@ int InsetNewline::latex(otexstream & os, OutputParams const & rp) const os << "\\\\\n"; break; } - return 0; } @@ -178,8 +177,7 @@ int InsetNewline::docbook(odocstream & os, OutputParams const &) const docstring InsetNewline::xhtml(XHTMLStream & xs, OutputParams const &) const { - xs << html::CompTag("br"); - xs.cr(); + xs << html::CR() << html::CompTag("br") << html::CR(); return docstring(); }