--self-contained
: Fixed overaggressive CSS minimization.
Previously `--self-contained` wiped out all spaces in CSS, including semantically significant spaces! Closes #2301. Closes #2286.
This commit is contained in:
parent
6c32afc3c4
commit
c2ab44af84
1 changed files with 2 additions and 1 deletions
|
@ -103,8 +103,9 @@ parseCSSUrls :: MediaBag -> Maybe String -> FilePath
|
|||
parseCSSUrls media sourceURL d = B.concat <$> P.many
|
||||
(pCSSWhite <|> pCSSComment <|> pCSSUrl media sourceURL d <|> pCSSOther)
|
||||
|
||||
-- Note: some whitespace in CSS is significant, so we can't collapse it!
|
||||
pCSSWhite :: ParsecT ByteString () IO ByteString
|
||||
pCSSWhite = P.space >> P.spaces >> return B.empty
|
||||
pCSSWhite = B.singleton <$> P.space <* P.spaces
|
||||
|
||||
pCSSComment :: ParsecT ByteString () IO ByteString
|
||||
pCSSComment = P.try $ do
|
||||
|
|
Loading…
Add table
Reference in a new issue