Skip to contentSkip to conversation

scripts/text2pod.pl: Escape left brace

PATCH Applied Fam Zheng 2 participants 3 messages Oct 9, 2015 – Oct 29, 2015

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 scripts/text2pod.pl: Escape left brace

Latest perl now deprecates "{" literal in regex and print warnings like "unescaped left brace in regex is deprecated". Add escapes to keep it happy.

---
 roms/ipxe           | 2 +-
 scripts/texi2pod.pl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
roms/ipxe +1 -1
index 4e03af8..35c5379 160000
@@ -1 +1 @@
-Subproject commit 4e03af8ec2d497e725566a91fd5c19dd604c18a6
+Subproject commit 35c5379760aa1fea5e38f7a78b090f92bb7813ee
scripts/texi2pod.pl +1 -1
index 94097fb..8767662 100755
@@ -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";
Signature · 1 line
2.5.3
#1 lore raw
Quoted 3 lines · Fam Zheng

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

#2 lore raw
Quoted 6 lines · Michael Tokarev
Quoted 3 lines · Fam Zheng

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