summaryrefslogtreecommitdiff
path: root/texinfo.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1998-07-19 14:20:42 +0000
committerKarl Berry <karl@gnu.org>1998-07-19 14:20:42 +0000
commit65a7296e2c81b04761b3f024572310a02c9de691 (patch)
tree223d6b10e97e35ca9e79b3082b07b0493bd95ff8 /texinfo.tex
parent99454e6a1eb49fa9718d5b7a1717607645ad4da1 (diff)
downloadgunmake-65a7296e2c81b04761b3f024572310a02c9de691.tar.gz
* 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>
Diffstat (limited to 'texinfo.tex')
-rw-r--r--texinfo.tex18
1 files changed, 15 insertions, 3 deletions
diff --git a/texinfo.tex b/texinfo.tex
index 6d59772..a0d954d 100644
--- a/texinfo.tex
+++ b/texinfo.tex
@@ -2569,10 +2569,22 @@ width0pt\relax} \fi
% will have extra space inserted, because the \medbreak in the
% start of the @defun won't see the skip inserted by the @end of
% 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
- \skip0 = \lastskip \ifdim\lastskip = 0pt \else \vskip-\lastskip \fi
- \temp
- \ifdim\skip0 = 0pt \else \vskip\skip0 \fi
+ \ifvmode
+ \skip0 = \lastskip
+ \ifdim\lastskip = 0pt \else \nobreak\vskip-\lastskip \fi
+ \fi
+ %
+ \temp % do the write
+ %
+ %
+ \ifvmode \ifdim\skip0 = 0pt \else \nobreak\vskip\skip0 \fi \fi
\fi
}%
}%