@@ -23,6 +23,11 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
2323 -- compress whitespace
2424 " something something " @=?
2525 compressCss " something \n\t\r something "
26+ -- do not compress whitespace in constants
27+ , "abc \" \t\n\r \" xyz" @=?
28+ compressCss "abc \" \t\n\r \" xyz"
29+ , "abc ' \t\n\r ' xyz" @=?
30+ compressCss "abc ' \t\n\r ' xyz"
2631
2732 -- strip comments
2833 , "" @=? compressCss "/* abc { } ;; \n\t\r */"
@@ -40,7 +45,7 @@ tests = testGroup "Hakyll.Web.CompressCss.Tests" $ concat
4045 -- don't get irritated by the wrong constant terminator
4146 , "\" ' \"" @=? compressCss "\" ' \""
4247 , "' \" '" @=? compressCss "' \" '"
43− -- don't compress whitespace in constants in the middle of a string
48+ -- don't compress whitespace around separators in constants in the middle of a string
4449 , "abc '{ '" @=? compressCss "abc '{ '"
4550 , "abc \"{ \"" @=? compressCss "abc \"{ \""
4651 -- compress multiple semicolons