From 8e671a5cdc6d06a3af93f0b24713aa403cec3bb0 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 9 Jun 2015 07:57:19 +0200 Subject: [PATCH] Revert "No \\par after greyedout notes (bug #9598)" This reverts commit f929f21228046756ef394e04fb7d334938560c7d. It is not as easy as this. See ticket. --- src/output_latex.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 22f083ccba..6df77f1b66 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -854,8 +854,8 @@ void TeXOnePar(Buffer const & buf, // to this font. (Matthias) // // We must not change the font for the last paragraph - // of non-multipar insets, tabular cells, greyedout notes - // or commands, since this produces unwanted whitespace. + // of non-multipar insets, tabular cells or commands, + // since this produces unwanted whitespace. Font const font = par.empty() ? par.getLayoutFont(bparams, outerfont) @@ -866,8 +866,7 @@ void TeXOnePar(Buffer const & buf, if (style.resfont.size() != font.fontInfo().size() && (nextpar || maintext || (text.inset().getLayout().isMultiPar() - && text.inset().lyxCode() != CELL_CODE - && text.inset().lyxCode() != NOTE_CODE)) + && text.inset().lyxCode() != CELL_CODE)) && !is_command) { os << '{'; os << "\\" << from_ascii(font.latexSize()) << " \\par}"; -- 2.39.2