File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 578
578
% surrounded by @ signs.
579
579
\newcommand {\CodeBlockSetup }{%
580
580
\lstset {escapechar=@, aboveskip=\parskip , belowskip=0pt,
581
- beginpenalty=200, midpenalty=500, endpenalty=-50,
581
+ midpenalty=500, endpenalty=-50,
582
582
emptylinepenalty=-250, semicolonpenalty=0,upquote=true}%
583
583
\renewcommand {\tcode }[1]{\textup {\CodeStylex {##1}}}
584
584
\renewcommand {\term }[1]{\textit {##1 }}%
Original file line number Diff line number Diff line change 175
175
\else
176
176
\lst @ifdisplaystyle
177
177
\lst @EveryDisplay
178
- % make penalty configurable
179
- \par\lst @beginpenalty
178
+ \par\lst @beginpenalty % penalty is now configurable
180
179
\vspace\lst @aboveskip
181
180
\fi
182
181
\fi
183
182
\normalbaselines
184
183
\abovecaptionskip\lst @abovecaption\relax
185
184
\belowcaptionskip\lst @belowcaption\relax
186
- \lst @MakeCaption t%
185
+ \let\savedallowbreak\allowbreak
186
+ \let\allowbreak\relax
187
+ \lst @MakeCaption t% % neuter \allowbreak before non-existing top caption
188
+ \let\allowbreak\savedallowbreak
187
189
\lsthk @PreInit \lsthk @Init
188
190
\lst @ifdisplaystyle
189
191
\global\let\lst @ltxlabel\@ empty
You can’t perform that action at this time.
0 commit comments