From c0a4f3f05544cc2ee8f0d2424d9b7136d69e9fb8 Mon Sep 17 00:00:00 2001 From: Luca Molteni Date: Fri, 22 Jul 2016 12:10:07 +0200 Subject: Fixes https://github.com/jaspervdj/hakyll/issues/323 we have less compression but we preserve correct CSS semantic --- src/Hakyll/Web/CompressCss.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hakyll/Web/CompressCss.hs b/src/Hakyll/Web/CompressCss.hs index 0534b9f..58d52b4 100644 --- a/src/Hakyll/Web/CompressCss.hs +++ b/src/Hakyll/Web/CompressCss.hs @@ -35,7 +35,7 @@ compressCss = compressSeparators . stripComments . compressWhitespace compressSeparators :: String -> String compressSeparators = replaceAll "; *}" (const "}") . - replaceAll " *([{};:]) *" (take 1 . dropWhile isSpace) . + replaceAll " *([{};]) *" (take 1 . dropWhile isSpace) . replaceAll ";+" (const ";") -- cgit v1.2.3