Skip to content

Commit

Permalink
Merge pull request #353 from W3EDGE/643-dont-remove-space-li
Browse files Browse the repository at this point in the history
dont remove spaces around <li> tags since it's often inline-block, fixes #273
  • Loading branch information
cssjoe authored Mar 26, 2021
2 parents 19b0807 + 3a30c27 commit 77c2398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Minify/Minify/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function process()
// remove ws around block/undisplayed elements
$this->_html = preg_replace('/\\s+(<\\/?(?:area|article|aside|base(?:font)?|blockquote|body'
.'|canvas|caption|center|col(?:group)?|dd|dir|div|dl|dt|fieldset|figcaption|figure|footer|form'
.'|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|li|link|main|map|menu|meta|nav'
.'|frame(?:set)?|h[1-6]|head|header|hgroup|hr|html|legend|link|main|map|menu|meta|nav'
.'|ol|opt(?:group|ion)|output|p|param|section|t(?:able|body|head|d|h||r|foot|itle)'
.'|ul|video)\\b[^>]*>)/i', '$1', $this->_html);

Expand Down

0 comments on commit 77c2398

Please sign in to comment.