File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 343
343
\fi\fi
344
344
}%
345
345
% auxiliary paragraph dissector to get max and min widths
346
+ % but minwidth must not take into account the last line
346
347
\newbox\spx@scratchbox
347
348
\def\spx@verb@getwidths {%
349
+ \unskip\unpenalty
350
+ \setbox\spx@scratchbox\lastbox
351
+ \ifvoid \spx@scratchbox
352
+ \else
353
+ \setbox\spx@scratchbox\hbox {\unhbox\spx@scratchbox }%
354
+ \ifdim \spx@verb@maxwidth <\wd\spx@scratchbox
355
+ \xdef\spx@verb@maxwidth {\number\wd\spx@scratchbox sp}%
356
+ \fi
357
+ \expandafter\spx@verb@getwidths@loop
358
+ \fi
359
+ }%
360
+ \def\spx@verb@getwidths@loop {%
348
361
\unskip\unpenalty
349
362
\setbox\spx@scratchbox\lastbox
350
363
\ifvoid \spx@scratchbox
356
369
\ifdim \spx@verb@minwidth >\wd\spx@scratchbox
357
370
\xdef\spx@verb@minwidth {\number\wd\spx@scratchbox sp}%
358
371
\fi
359
- \expandafter\spx@verb@getwidths
372
+ \expandafter\spx@verb@getwidths@loop
360
373
\fi
361
374
}%
362
375
% auxiliary macros to implement "cut long line even in middle of word"
You can’t perform that action at this time.
0 commit comments