From f929f21228046756ef394e04fb7d334938560c7d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 9 Jun 2015 07:44:03 +0200 Subject: [PATCH] No \\par after greyedout notes (bug #9598) --- src/output_latex.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 6df77f1b66..22f083ccba 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 or commands, - // since this produces unwanted whitespace. + // of non-multipar insets, tabular cells, greyedout notes + // or commands, since this produces unwanted whitespace. Font const font = par.empty() ? par.getLayoutFont(bparams, outerfont) @@ -866,7 +866,8 @@ 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() != CELL_CODE + && text.inset().lyxCode() != NOTE_CODE)) && !is_command) { os << '{'; os << "\\" << from_ascii(font.latexSize()) << " \\par}"; -- 2.39.2