From: Jean-Marc Lasgouttes Date: Wed, 23 Jan 2013 23:16:42 +0000 (+0100) Subject: Fix bug #8049: extra empty line at the end of verbatim environment X-Git-Tag: 2.1.0beta1~864 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc5d63ae242e902269d327630587f1e2aa52a6c8;p=features.git Fix bug #8049: extra empty line at the end of verbatim environment --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index f2c99db146..2af9831d78 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -585,7 +585,7 @@ void TeXOnePar(Buffer const & buf, os << '\n'; if (!style.parbreak_is_newline) { os << '\n'; - } else if (nextpar) { + } else if (nextpar && !style.isEnvironment()) { Layout const nextstyle = text.inset().forcePlainLayout() ? bparams.documentClass().plainLayout() : nextpar->layout();