From: Nigel Metheringham Date: Mon, 19 Jul 2010 20:32:31 +0000 (+0100) Subject: Hack to work around CSS minify bug X-Git-Tag: exim-4_89_1~96 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/46f9869fe34ba8f14b6e4c0a41565d364eac572b Hack to work around CSS minify bug https://rt.cpan.org/Public/Bug/Display.html?id=59549 --- diff --git a/script/gen.pl b/script/gen.pl index d086fd3..a0a15b0 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -62,7 +62,9 @@ sub do_web { if ( $path =~ /(.+)\.css$/ ) { print "CSS to : docroot:/$path\n"; my $content = read_file("$opt{tmpl}/web/$path"); - write_file( "$opt{docroot}/$path", $opt{minify} ? CSS::Minifier::XS::minify($content) : $content ); + my $output = $opt{minify} ? CSS::Minifier::XS::minify($content) : $content; + $output =~ s/and\(/and (/g; # hack round minify bug + write_file( "$opt{docroot}/$path", $output ); } elsif ( $path =~ /(.+)\.js$/ ) { print "JS to : docroot:/$path\n";