From: sndrs Date: Thu, 13 Jun 2013 15:06:53 +0000 (+0100) Subject: just tidying up X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a2c3571ea4bb6beafb198904db4fa46c48cc14de;p=html-minifier.git just tidying up --- diff --git a/dist/all.js b/dist/all.js index a85e1db..b4dbd44 100644 --- a/dist/all.js +++ b/dist/all.js @@ -384,7 +384,7 @@ function collapseWhitespaceSmart(str, prevTag, nextTag) { // array of tags that will maintain a single space outside of them - var tags = ['a', 'b', 'big', 'button', 'em', 'font','i', 'img', 'mark', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'tt', 'u']; + var tags = ['a', 'b', 'big', 'button', 'code', 'em', 'font', 'i', 'img', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'tt', 'u']; if (prevTag && (prevTag.substr(0,1) !== '/' || ( prevTag.substr(0,1) === '/' && tags.indexOf(prevTag.substr(1)) === -1))) { diff --git a/src/htmlminifier.js b/src/htmlminifier.js index eb01502..352e5e5 100644 --- a/src/htmlminifier.js +++ b/src/htmlminifier.js @@ -42,7 +42,7 @@ function collapseWhitespaceSmart(str, prevTag, nextTag) { // array of tags that will maintain a single space outside of them - var tags = ['a', 'b', 'big', 'button', 'code', 'em', 'font','i', 'img', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'tt', 'u']; + var tags = ['a', 'b', 'big', 'button', 'code', 'em', 'font', 'i', 'img', 'kbd', 'mark', 'q', 's', 'small', 'span', 'strike', 'strong', 'sub', 'sup', 'tt', 'u']; if (prevTag && (prevTag.substr(0,1) !== '/' || ( prevTag.substr(0,1) === '/' && tags.indexOf(prevTag.substr(1)) === -1))) {