This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, docs, committed] Fix PDF table of contents in cppinternals.texi.


The @top line in cppinternals.texi was causing a blank line to appear in the table of contents of the PDF version, and was also causing an extra pair of blank pages at the beginning of the manual. This workaround fixes the problem.

Tested on i686-pc-linux-gnu with "make pdf" and "make info"; committed to 4.2 and trunk as obvious.

-------------------------------------------------------------------------
2007-03-06  Brooks Moses  <brooks.moses@codesourcery.com>

	* doc/cppinternals.texi: Surround @top in @ifnottex block to
	fix broken table of contents.

-------------------------------------------------------------------------

- Brooks
Index: cppinternals.texi
===================================================================
--- cppinternals.texi	(revision 122562)
+++ cppinternals.texi	(working copy)
@@ -66,8 +66,13 @@
 @contents
 @page
 
+@ifnottex
 @node Top
 @top
+@end ifnottex
+@iftex
+@node Top
+@end iftex
 @chapter Cpplib---the GNU C Preprocessor
 
 The GNU C preprocessor is

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]