From: Uwe Stöhr Date: Thu, 30 Oct 2008 23:19:21 +0000 (+0000) Subject: output_latex.cpp: fix regression, reported here: http://www.mail-archive.com/lyx... X-Git-Tag: 1.6.10~2770 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1a4e481111667f4994c976be65b991b35d68a686;p=features.git output_latex.cpp: fix regression, reported here: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145738.html I tested it carefully but in case this makes problems, please revert this immediately. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27205 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 90af09a5dc..ce5be3911d 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -157,7 +157,8 @@ TeXEnvironment(Buffer const & buf, } if (style.isEnvironment()) { - os << "\\begin{" << from_ascii(style.latexname()) << '}'; + // \begin must start on a new line + os << "\n\\begin{" << from_ascii(style.latexname()) << '}'; if (style.optionalargs > 0) { int ret = latexOptArgInsets(*pit, os, runparams, style.optionalargs);