From 604d0391ba2d372f8de6efd364e9978fb11e4f92 Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Sun, 14 Jun 2015 21:35:51 -0400 Subject: Squelch regex deprecation warnings from Perl 5.22. Specifically: "Unescaped left brace in regex is deprecated, passed through in regex" --- IkiWiki/Plugin/teximg.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm index 3d6fa9942..e0f97614b 100644 --- a/IkiWiki/Plugin/teximg.pm +++ b/IkiWiki/Plugin/teximg.pm @@ -146,8 +146,8 @@ sub gen_image ($$$$) { my $tex = $config{teximg_prefix}; $tex .= '\['.$code.'\]'; $tex .= $config{teximg_postfix}; - $tex =~ s!\\documentclass{article}!\\documentclass[${height}pt]{article}!g; - $tex =~ s!\\documentclass{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g; + $tex =~ s!\\documentclass\{article}!\\documentclass[${height}pt]{article}!g; + $tex =~ s!\\documentclass\{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g; my $tmp = eval { create_tmp_dir($digest) }; if (! $@ && -- cgit v1.2.3