doc/texi2pod: correctly handle @url commands in the form @url{URL,...}
authorStefano Sabatini <stefasab@gmail.com>
Mon, 17 Dec 2012 13:29:17 +0000 (14:29 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 17 Dec 2012 23:06:35 +0000 (00:06 +0100)
Ignore the other arguments, which have not to be processed by the POD
renderer.

doc/texi2pod.pl

index 6702d7a..bf333b8 100755 (executable)
@@ -365,7 +365,7 @@ sub postprocess
     # @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.
-    s/\@(?:uref|url|email)\{([^\},]*)\}/&lt;B<$1>&gt;/g;
+    s/\@(?:uref|url|email)\{([^\},]*),?[^\}]*\}/&lt;B<$1>&gt;/g;
     s/\@uref\{([^\},]*),([^\},]*)\}/$2 (C<$1>)/g;
     s/\@uref\{([^\},]*),([^\},]*),([^\},]*)\}/$3/g;