OSDN Git Service

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)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 7 Mar 2013 00:44:59 +0000 (01:44 +0100)
Fix potential spurious substitution.

doc/texi2pod.pl

index 5c3aba6..697576c 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;