1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/textproc/latex2html/files/patch-versions_html4__0.pl
Mathieu Arnold 8ca44828b2 Fix build with Perl 5.26.
Unescaped left brace in regex is illegal in regex when not used as a
quantifier.
- /foo{3}/ will match foofoofoo.
- /\\new{bar}/ is illegal and should be written as /\\new\{bar}/.

PR:		226817
Sponsored by:	Absolight
2018-03-28 16:52:54 +00:00

12 lines
313 B
Perl

--- versions/html4_0.pl.orig 2018-03-28 15:49:41 UTC
+++ versions/html4_0.pl
@@ -955,7 +955,7 @@ sub process_tabular {
if ($color_env) {
local($color_test) = join(',',@$open_tags_R);
- if ($color_test =~ /(color{[^}]*})/g ) {
+ if ($color_test =~ /(color\{[^}]*})/g ) {
$color_env = $1;
}
}