Remove @anchor{} commands from the POD output.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 30 Nov 2010 20:14:29 +0000 (20:14 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 30 Nov 2010 20:14:29 +0000 (20:14 +0000)
This allows to use the @xref{} command for the HTML output.

Originally committed as revision 25854 to svn://svn.ffmpeg.org/ffmpeg/trunk

doc/texi2pod.pl

index fd3f020..aa3273e 100755 (executable)
@@ -346,6 +346,7 @@ 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;