mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-30 19:24:07 +00:00
* texinfo.tex (\dosubind): Don't do \vskip to preserve \lastskip
unless we are in vertical mode. Otherwise we might end a paragraph prematurely, and \folio won't get expanded by \output. Report from: "Richard E. Stone" <res@rstone.mn.org>
This commit is contained in:
parent
99454e6a1e
commit
65a7296e2c
1 changed files with 15 additions and 3 deletions
18
texinfo.tex
18
texinfo.tex
|
@ -2569,10 +2569,22 @@ width0pt\relax} \fi
|
||||||
% will have extra space inserted, because the \medbreak in the
|
% will have extra space inserted, because the \medbreak in the
|
||||||
% start of the @defun won't see the skip inserted by the @end of
|
% start of the @defun won't see the skip inserted by the @end of
|
||||||
% the previous defun.
|
% the previous defun.
|
||||||
|
%
|
||||||
|
% But don't do any of this if we're not in vertical mode. We
|
||||||
|
% don't want to do a \vskip and prematurely end a paragraph.
|
||||||
|
%
|
||||||
|
% Avoid page breaks due to these extra skips, too.
|
||||||
|
%
|
||||||
\iflinks
|
\iflinks
|
||||||
\skip0 = \lastskip \ifdim\lastskip = 0pt \else \vskip-\lastskip \fi
|
\ifvmode
|
||||||
\temp
|
\skip0 = \lastskip
|
||||||
\ifdim\skip0 = 0pt \else \vskip\skip0 \fi
|
\ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi
|
||||||
|
\fi
|
||||||
|
%
|
||||||
|
\temp % do the write
|
||||||
|
%
|
||||||
|
%
|
||||||
|
\ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi
|
||||||
\fi
|
\fi
|
||||||
}%
|
}%
|
||||||
}%
|
}%
|
||||||
|
|
Loading…
Reference in a new issue