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]

[3.3, 3.4, HEAD] remove @ref{...} from generated man pages


The generated man pages for cpp and gcc still have cross references
embedded in the text. This patch prints these references in bold
(pointing to sections actually contained in the man page).

Ok to checkin?

	Matthias


2004-08-25  Matthias Klose  <doko@debian.org>

	* texi2pod.pl: keep references of the form @ref{...}, print
	them bold.


--- contrib/texi2pod.pl~	2003-08-01 05:10:56.000000000 +0200
+++ contrib/texi2pod.pl	2004-08-25 10:50:41.000000000 +0200
@@ -349,6 +349,9 @@
     s/\@w\{([^\}]*)\}/S<$1>/g;
     s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
 
+    # keep references of the form @ref{...}, print them bold
+    s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;
+
     # Cross references are thrown away, as are @noindent and @refill.
     # (@noindent is impossible in .pod, and @refill is unnecessary.)
     # @* is also impossible in .pod; we discard it and any newline that


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