aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-01-12 00:53:42 +0100
committerTimothy Gu <timothygu99@gmail.com>2013-08-28 09:35:20 -0700
commit2892b01227d9b1e829b428591ce6fd2a30aae67a (patch)
tree7699dec2bfc0542945b9363b8ee763d4ee421062
parente4a49ae561cbd651fb3c1b23d5479de9ee6ead5f (diff)
downloadffmpeg-2892b01227d9b1e829b428591ce6fd2a30aae67a.tar.gz
doc/texipod: add rule to correctly interpret @ref{ANCHOR,XREF,SECTION_NAME,...}
This allows to name an internal reference in the POD/MAN output. (cherry picked from commit c499d45c6bea8d7bbbb7a819c53fe9766136bf29) Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rwxr-xr-xdoc/texi2pod.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 104b337071..c7f1125deb 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -361,6 +361,7 @@ sub postprocess
s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
s/;\s+\@pxref\{(?:[^\}]*)\}//g;
+ s/\@ref\{(?:[^,]*,)(?:[^,]*,)([^,\}]*).*\}/$1/g;
s/\@ref\{([^\}]*)\}/$1/g;
s/\@noindent\s*//g;
s/\@refill//g;