Browse code

doc/texi2pod: fix @ref substitution rule, disallow "}" within the fields

Fix potential spurious substitution.
(cherry picked from commit 9167db3829f360f241255d4240ba6b7135ab4111)

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

Stefano Sabatini authored on 2013/03/07 09:43:39
Showing 1 changed files
... ...
@@ -372,7 +372,7 @@ sub postprocess
372 372
     s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
373 373
     s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
374 374
     s/;\s+\@pxref\{(?:[^\}]*)\}//g;
375
-    s/\@ref\{(?:[^,]*,)(?:[^,]*,)([^,\}]*).*\}/$1/g;
375
+    s/\@ref\{(?:[^,\}]*,)(?:[^,\}]*,)([^,\}]*).*\}/$1/g;
376 376
     s/\@ref\{([^\}]*)\}/$1/g;
377 377
     s/\@noindent\s*//g;
378 378
     s/\@refill//g;