On Tue, May 01, 2018 at 02:22:12PM +0200, Juergen Spitzmueller wrote: > commit 2009469219dd81ec932f686eb9985829c426732a > Author: Juergen Spitzmueller <sp...@lyx.org> > Date: Tue May 1 14:21:05 2018 +0200 > > Group the switch of encoding for listings in utf8 documents > > Else, \cprotect'ed documents fail. > --- > src/insets/InsetListings.cpp | 11 ++++++++--- > src/output_latex.cpp | 4 ++-- > src/output_latex.h | 2 +- > 3 files changed, 11 insertions(+), 6 deletions(-) [...] > @@ -332,12 +335,14 @@ void InsetListings::latex(otexstream & os, OutputParams > const & runparams) const > } > os << from_utf8(param_string) << "]\n"; > } > - os << code << breakln << "\\end{lstlisting}\n"; > + os << code << "\\end{lstlisting}\n"; > }
Jürgen, why this change? Here, breakln ensures that \end{lstlisting} is issued at the beginning of a line without introducing any blank line. -- Enrico