bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug reports for texinfo (and 2 wishes)


From: Karl Berry
Subject: Re: Bug reports for texinfo (and 2 wishes)
Date: Fri, 27 Jan 2006 16:51:38 -0600

    276000  Wrong page number in table of contents

I have just checked in this changed to texinfo.tex which I hope fixes
this one.  (texinfo.tex is a lot easier to hack than info :)

Thanks,
Karl

--- texinfo.tex 8 Jan 2006 22:14:37 -0000       1.206
+++ texinfo.tex 27 Jan 2006 22:46:07 -0000
@@ -4,5 +4,5 @@
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2006-01-08.14}
+\def\texinfoversion{2006-01-27.14}
 %
 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
@@ -4505,11 +4505,19 @@
     \fi\fi\fi
     %
-    % Write the toc entry (before \donoderef).  See comments in \chfplain.
+    % Write the toc entry (before \donoderef).  See comments in \chapmacro.
     \writetocentry{\toctype\sectionlevel}{#1}{#4}%
     %
     % Write the node reference (= pdf destination for pdftex).
-    % Again, see comments in \chfplain.
+    % Again, see comments in \chapmacro.
     \donoderef{#3}%
     %
+    % Interline glue will be inserted when the vbox is completed.
+    % That glue will be a valid breakpoint for the page, since it'll be
+    % preceded by a whatsit (usually from the \donoderef, or from the
+    % \writetocentry if there was no node).  We don't want to allow that
+    % break, since then the whatsits could end up on page n while the
+    % section is on page n+1, thus toc/etc. are wrong.  Debian bug 276000.
+    \nobreak
+    %
     % Output the actual section heading.
     \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
@@ -4574,5 +4582,5 @@
          address@hidden
        \temp
-      }
+      }%
     \fi
   \fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]