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-27 09:06:37 -0700
commitdf21807141850d4a09c87b5091aebe487cb1c514 (patch)
tree4d0f9ef4180149f6c571b653404495e4f89790b9
parentada4f4f715c45809c401b965ac0f9af83fb6b676 (diff)
downloadffmpeg-df21807141850d4a09c87b5091aebe487cb1c514.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 bf333b891b..95e52f545e 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -356,6 +356,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;