[FFmpeg-devel] [PATCH 4/8] doc/texi2pod: move @anchor handling code

Timothy Gu timothygu99 at gmail.com
Thu Jan 23 05:04:02 CET 2014


Use part of GCC r122026 instead of 60445a09.

The other half of r122026 is the same as 7f0e747.

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 doc/texi2pod.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index d684ba4..578eb7a 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -387,7 +387,6 @@ sub postprocess
     # @* is also impossible in .pod; we discard it and any newline that
     # follows it.  Similarly, our macro @gol must be discarded.
 
-    s/\@anchor{(?:[^\}]*)\}//g;
     s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
     s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
     s/;\s+\@pxref\{(?:[^\}]*)\}//g;
@@ -398,6 +397,9 @@ sub postprocess
     s/\@gol//g;
     s/\@\*\s*\n?//g;
 
+    # Anchors are thrown away
+    s/\@anchor\{(?:[^\}]*)\}//g;
+
     # @uref can take one, two, or three arguments, with different
     # semantics each time.  @url and @email are just like @uref with
     # one argument, for our purposes.
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list