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

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

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Stefano Sabatini
2013-03-07 01:43:39 +01:00
committed by Timothy Gu
parent de1609bc2d
commit b7a4b4c145

View File

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