Update to version 0.2.1.
authorJakub Pawlowicz <jakub@goalsmashers.com>
Sat, 19 Mar 2011 09:08:56 +0000 (10:08 +0100)
committerJakub Pawlowicz <jakub@goalsmashers.com>
Sat, 19 Mar 2011 09:08:56 +0000 (10:08 +0100)
* Added stripping space before !important keyword.

History.md
lib/clean.js
package.json
test/data/blueprint-min.css
test/unit-test.js

index 85b29bf..a0873f2 100644 (file)
@@ -1,3 +1,9 @@
+0.2.1 / 2011-03-19
+==================
+
+  * Added stripping space before !important keyword.
+  * Updated repository location and author information in package.json.
+
 0.2.0 / 2011-03-02 
 ==================
 
index 4527f6b..2ead47d 100644 (file)
@@ -64,6 +64,7 @@ var CleanCSS = {
     replace(/;\s*;+/g, ';') // whitespace between semicolons & multiple semicolons
     replace(/\n/g, '') // line breaks
     replace(/\s+/g, ' ') // multiple whitespace
+    replace(/ !important/g, '!important') // whitespace before !important
     replace(/[ ]?,[ ]?/g, ',') // space with a comma
     replace(/progid:[^(]+\(([^\)]+)/, function(match, contents) { // restore spaces inside IE filters (IE 7 issue)
       return match.replace(/,/g, ', ');
index 0ee062a..b390221 100644 (file)
@@ -1,14 +1,14 @@
 {
   "name": "clean-css",
-  "author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/JakubPawlowicz)",
+  "author": "Jakub Pawlowicz <jakub@goalsmashers.com> (http://twitter.com/GoalSmashers)",
   "description": "A well-tested CSS minifier",
   "keywords": ["css", "minifier"],
-  "homepage": "http://github.com/jakubpawlowicz/clean-css",
+  "homepage": "http://github.com/GoalSmashers/clean-css",
   "repository": {
     "type" : "git",
-    "url" : "http://github.com/jakubpawlowicz/clean-css.git"
+    "url" : "http://github.com/GoalSmashers/clean-css.git"
   },
-  "version": "0.2.0",
+  "version": "0.2.1",
   "main": "index.js",
   "bin": {
     "cleancss": "./bin/cleancss"
index 8752547..5644f04 100644 (file)
@@ -3,7 +3,7 @@ body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,ad
 article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block}
 body{line-height:1.5;background:#fff}
 table{border-collapse:separate;border-spacing:0}
-caption,th,td{text-align:left;font-weight:400;float:none !important}
+caption,th,td{text-align:left;font-weight:400;float:none!important}
 table,th,td{vertical-align:middle}
 blockquote:before,blockquote:after,q:before,q:after{content:''}
 blockquote,q{quotes:"" ""}
@@ -20,9 +20,9 @@ h5{font-size:1em;font-weight:700;margin-bottom:1.5em}
 h6{font-size:1em;font-weight:700}
 h1 img,h2 img,h3 img,h4 img,h5 img,h6 img{margin:0}
 p{margin:0 0 1.5em}
-.left{float:left !important}
+.left{float:left!important}
 p .left{margin:1.5em 1.5em 1.5em 0;padding:0}
-.right{float:right !important}
+.right{float:right!important}
 p .right{margin:1.5em 0 1.5em 1.5em;padding:0}
 a:focus,a:hover{color:#09f}
 a{color:#06c;text-decoration:underline}
index ed9f684..965a04e 100644 (file)
@@ -247,5 +247,11 @@ vows.describe('clean-units').addBatch({
       "@charset 'utf-8';div :before { display: block }@charset 'utf-8';a { color: #f10 }",
       "@charset 'utf-8';div :before{display:block}a{color:#f10}"
     ]
+  }),
+  'important': cssContext({
+    'space before': [
+      "body{background-color:#fff  !important}",
+      "body{background-color:#fff!important}"
+    ]
   })
 }).export(module);
\ No newline at end of file