Browse code

doc/texi2pod: correctly handle @url commands in the form @url{URL,...}

Ignore the other arguments, which have not to be processed by the POD
renderer.
(cherry picked from commit 1f9855dbc1102e63fa7ce932d0edf0d545c89b09)

Signed-off-by: Timothy Gu <timothygu99@gmail.com>

Stefano Sabatini authored on 2012/12/17 22:29:17
Showing 1 changed files
... ...
@@ -365,7 +365,7 @@ sub postprocess
365 365
     # @uref can take one, two, or three arguments, with different
366 366
     # semantics each time.  @url and @email are just like @uref with
367 367
     # one argument, for our purposes.
368
-    s/\@(?:uref|url|email)\{([^\},]*)\}/&lt;B<$1>&gt;/g;
368
+    s/\@(?:uref|url|email)\{([^\},]*),?[^\}]*\}/&lt;B<$1>&gt;/g;
369 369
     s/\@uref\{([^\},]*),([^\},]*)\}/$2 (C<$1>)/g;
370 370
     s/\@uref\{([^\},]*),([^\},]*),([^\},]*)\}/$3/g;
371 371