]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
scripts/text2pod.pl: Escape left brace
authorFam Zheng <famz@redhat.com>
Tue, 20 Oct 2015 07:38:46 +0000 (15:38 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Nov 2015 13:50:27 +0000 (14:50 +0100)
Latest perl now deprecates "{" literal in regex and print warnings like
"unescaped left brace in regex is deprecated".  Add escapes to keep it
happy.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1445326726-16031-1-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/texi2pod.pl

index 94097fb065c8a743b43968e61253c99b1c8a0be1..8767662d30a8630a06973e253fd0cc639be2f538 100755 (executable)
@@ -317,7 +317,7 @@ while(<$inf>) {
        @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";