Browse Source

Documentation: fix warning in cat-texi.perl

Newer versions of Perl produce the warning "Unescaped left brace in
regex is deprecated, passed through in regex" when an unescaped left
brace occurs in a regex.  Escape the brace to avoid this warning.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
brian m. carlson 8 years ago committed by Junio C Hamano
parent
commit
f7bf8feaf5
  1. 2
      Documentation/cat-texi.perl

2
Documentation/cat-texi.perl

@ -11,7 +11,7 @@ while (<STDIN>) {
if (s/^\@top (.*)/\@node $1,,,Top/) { if (s/^\@top (.*)/\@node $1,,,Top/) {
push @menu, $1; push @menu, $1;
} }
s/\(\@pxref{\[(URLS|REMOTES)\]}\)//; s/\(\@pxref\{\[(URLS|REMOTES)\]}\)//;
s/\@anchor\{[^{}]*\}//g; s/\@anchor\{[^{}]*\}//g;
print TMP; print TMP;
} }

Loading…
Cancel
Save