Skip to contentSkip to conversation

scripts/text2pod.pl: Escape left brace

PATCH New Fam Zheng 1 participant 1 message Oct 20, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH v2 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.

---

v2: Drop superfluous hunk.

---
 scripts/texi2pod.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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.4.3