mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
No \\par after greyedout notes (bug #9598)
This commit is contained in:
parent
dcfb918f15
commit
f929f21228
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user