From dc5d63ae242e902269d327630587f1e2aa52a6c8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 24 Jan 2013 00:16:42 +0100 Subject: [PATCH] Fix bug #8049: extra empty line at the end of verbatim environment --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5