Skip to content

Commit

Permalink
lastnodetype test fixes latex3#167
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Feb 9, 2021
1 parent 18175dc commit f596673
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hyperref.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4445,7 +4445,11 @@
\let\Hy@RestoreLastskip\relax
\ifvmode
\ifdim\lastskip=\z@
\let\Hy@RestoreLastskip\nobreak
\ifnum\lastnodetype=11 %
\let\Hy@RestoreLastskip\nobreak
\else
\let\Hy@RestoreLastskip\relax
\fi
\else
\begingroup
\skip@=-\lastskip
Expand Down
23 changes: 23 additions & 0 deletions testfiles/gh167-lastskip.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
\input{regression-test}
\documentclass{article}

\usepackage{hyperref} %
\textheight 3cm

\begin{document}
\begin{minipage}{5cm}
\rule{1cm}{2cm}
\end{minipage}

%\refstepcounter{section}
\makeatletter \Hy@SaveLastskip\Hy@RestoreLastskip\makeatother
\begin{minipage}{5cm}
\rule{1cm}{2cm}
\end{minipage}

\START
\LONGTYPEOUT{no overfull box}

\clearpage

\stop\end{document}
5 changes: 5 additions & 0 deletions testfiles/gh167-lastskip.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
no overfull box
[1
] [2]

0 comments on commit f596673

Please sign in to comment.