This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
small texi2pod change
- To: gcc-patches at gcc dot gnu dot org
- Subject: small texi2pod change
- From: Jan Prikryl <prikryl at vrvis dot at>
- Date: Sat, 6 Jan 2001 13:52:50 +0100
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;