]> git.lyx.org Git - features.git/commitdiff
Fix bug #8049: extra empty line at the end of verbatim environment
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 23 Jan 2013 23:16:42 +0000 (00:16 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 25 Jan 2013 11:18:40 +0000 (12:18 +0100)
src/output_latex.cpp

index f2c99db146a68b9558a0b3311fdc82dbc02abf79..2af9831d780f175aa61c26ea24e42601658d8050 100644 (file)
@@ -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();