doc/texi2pod: fix @ref substitution rule, disallow "}" within the fields
authorStefano Sabatini <stefasab@gmail.com>
Thu, 7 Mar 2013 00:43:39 +0000 (01:43 +0100)
committerTimothy Gu <timothygu99@gmail.com>
Wed, 28 Aug 2013 16:35:20 +0000 (09:35 -0700)
Fix potential spurious substitution.
(cherry picked from commit 9167db3829f360f241255d4240ba6b7135ab4111)

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
doc/texi2pod.pl

index fc23c7b..610f349 100755 (executable)
@@ -377,7 +377,7 @@ sub postprocess
     s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
     s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
     s/;\s+\@pxref\{(?:[^\}]*)\}//g;
-    s/\@ref\{(?:[^,]*,)(?:[^,]*,)([^,\}]*).*\}/$1/g;
+    s/\@ref\{(?:[^,\}]*,)(?:[^,\}]*,)([^,\}]*).*\}/$1/g;
     s/\@ref\{([^\}]*)\}/$1/g;
     s/\@noindent\s*//g;
     s/\@refill//g;