X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_latex.cpp;h=4589b3795b1368a10c90d8f92e4b8abf0e90fcae;hb=447a1056b4f97b102db9666a131ce85001c0676c;hp=c5306d74ac13e4e2a59326b3eb22bee113a0e88a;hpb=5979a01b1d1e58e47165e63e23e40f14bcd7e23b;p=lyx.git diff --git a/src/output_latex.cpp b/src/output_latex.cpp index c5306d74ac..4589b3795b 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1455,12 +1455,7 @@ void TeXOnePar(Buffer const & buf, // Note from JMarc: we will re-add a \n explicitly in // TeXEnvironment, because it is needed in this case if (nextpar && !os.afterParbreak() && !last_was_separator) { - if (runparams.isNonLong) - // This is to allow parbreak in multirow - // It could also be used for other non-long - // contexts - os << "\\endgraf"; - else if (!text.inset().getLayout().parbreakIgnored() && !merged_par) + if (!text.inset().getLayout().parbreakIgnored() && !merged_par) // Make sure to start a new line os << breakln; // A newline '\n' is always output before a command, @@ -1507,8 +1502,15 @@ void TeXOnePar(Buffer const & buf, && tclass.isDefaultLayout(next_layout))) { // and omit paragraph break if it has been deleted with ct // and changes are not shown in output - if (!merged_par) - os << '\n'; + if (!merged_par) { + if (runparams.isNonLong) + // This is to allow parbreak in multirow + // It could also be used for other non-long + // contexts + os << "\\endgraf\n"; + else + os << '\n'; + } } } }