qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 02/14] scripts/text2pod.pl: Escape left brace


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 02/14] scripts/text2pod.pl: Escape left brace
Date: Wed, 4 Nov 2015 17:18:20 +0100

From: Fam Zheng <address@hidden>

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 <address@hidden>

Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 scripts/texi2pod.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl
index 94097fb..8767662 100755
--- a/scripts/texi2pod.pl
+++ b/scripts/texi2pod.pl
@@ -317,7 +317,7 @@ while(<$inf>) {
        @columns = ();
        for $column (split (/address@hidden/, $1)) {
            # @strong{...} is used a @headitem work-alike
-           $column =~ s/address@hidden(.*)}$/$1/;
+           $column =~ s/address@hidden(.*)\}$/$1/;
            push @columns, $column;
        }
        $_ = "\n=item ".join (" : ", @columns)."\n";
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]