diff mbox

scripts/text2pod.pl: Escape left brace

Message ID 1444372921-30909-1-git-send-email-famz@redhat.com
State New
Headers show

Commit Message

Fam Zheng Oct. 9, 2015, 6:42 a.m. UTC
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>
---
 roms/ipxe           | 2 +-
 scripts/texi2pod.pl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Michael Tokarev Oct. 29, 2015, 7:25 a.m. UTC | #1
09.10.2015 09:42, Fam Zheng wrote:
> Latest perl now deprecates "{" literal in regex and print warnings like
> "unescaped left brace in regex is deprecated".  Add escapes to keep it
> happy.


Applied to -trivial, thank you!

/mjt
Michael Tokarev Oct. 29, 2015, 7:36 a.m. UTC | #2
29.10.2015 10:25, Michael Tokarev wrote:
> 09.10.2015 09:42, Fam Zheng wrote:
>> Latest perl now deprecates "{" literal in regex and print warnings like
>> "unescaped left brace in regex is deprecated".  Add escapes to keep it
>> happy.
> 
> Applied to -trivial, thank you!

Noticed your v2 without the roms/ipxe change.  For fun, I just
removed that one when applying the v1, thought it was superlows... :)

/mjt
diff mbox

Patch

diff --git a/roms/ipxe b/roms/ipxe
index 4e03af8..35c5379 160000
--- a/roms/ipxe
+++ b/roms/ipxe
@@ -1 +1 @@ 
-Subproject commit 4e03af8ec2d497e725566a91fd5c19dd604c18a6
+Subproject commit 35c5379760aa1fea5e38f7a78b090f92bb7813ee
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 (/\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";