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]

small texi2pod change


Hi,

I'm attaching a patch that allows correct removal of texi
cross-references that have the form of

	(@pxref{section} some additional text)

Using the texi2pod.pl from 20010101 snapshot these would be left in
place.

-- jan

--------------------+------------------------------------------------------
 Jan Prikryl        | vr|vis center for virtual reality and visualisation
 <prikryl@vrvis.at> | http://www.vrvis.at
--------------------+------------------------------------------------------
--- texi2pod.pl.orig	Sat Jan  6 13:36:38 2001
+++ texi2pod.pl	Sat Jan  6 13:41:20 2001
@@ -261,11 +261,16 @@
     # (@noindent is impossible in .pod, and @refill is unnecessary.)
     # @* is also impossible in .pod; we discard it and any newline that
     # follows it.
 
     s/\@xref\{(?:[^\}]*)\}[^.]*.//g;
-    s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
+
+    # Originally "s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;", would not
+    # process cross-references like '(@pxref{some section} for more
+    # details)"
+    s/\s+\(\@pxref\{(?:[^\}]*)\}[^\)]*\)//g;
+
     s/;\s+\@pxref\{(?:[^\}]*)\}//g;
     s/\@noindent\s*//g;
     s/\@refill//g;
     s/\@\*\s*\n?//g;
 

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