diff mbox

[contrib] : texi2pod.pl: Escape braces in regexp involving @strong{...}

Message ID CAFULd4ZfEpxkG_0ZikmEGLmCTXGWctnjFjBy_aa2iL1dBtf2MA@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Aug. 4, 2015, 4:18 p.m. UTC
... to avoid

perl ../../gcc-svn/trunk/gcc/../contrib/texi2pod.pl
../../gcc-svn/trunk/gcc/doc/invoke.texi > gcc.pod
Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/^\@strong{ <-- HERE (.*)}$/ at
../../gcc-svn/trunk/gcc/../contrib/texi2pod.pl line 319.

2015-08-04  Uros Bizjak  <ubizjak@gmail.com>

    * texi2pod.pl: Escape braces in regexp involving @strong{...}.

Bootstrapped on Fedora 22 and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: texi2pod.pl
===================================================================
--- texi2pod.pl (revision 226581)
+++ texi2pod.pl (working copy)
@@ -316,7 +316,7 @@ 
       @columns = ();
       for $column (split (/\s*\@tab\s*/, $1)) {
           # @strong{...} is used a @headitem work-alike
-           $column =~ s/^\@strong{(.*)}$/$1/;
+           $column =~ s/^\@strong\{(.*)\}$/$1/;
           push @columns, $column;
       }
       $_ = "\n=item ".join (" : ", @columns)."\n";