From 46f9869fe34ba8f14b6e4c0a41565d364eac572b Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Mon, 19 Jul 2010 21:32:31 +0100 Subject: [PATCH] Hack to work around CSS minify bug https://rt.cpan.org/Public/Bug/Display.html?id=59549 --- script/gen.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- 2.30.2