Comparing version 0.12.0 to 0.12.1
0.12.1 / 2011-04-29 | ||
================== | ||
* Fixed spaces around line-height shorthand. Closes #228 | ||
* Fixed `-{foo}` interpolation support. Closes #235 | ||
0.12.0 / 2011-04-29 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -521,2 +521,5 @@ | ||
return this.property(); | ||
case '-': | ||
if ('{' == this.lookahead(2).type) | ||
return this.property(); | ||
} | ||
@@ -523,0 +526,0 @@ } |
@@ -27,3 +27,3 @@ | ||
exports.version = '0.12.0'; | ||
exports.version = '0.12.1'; | ||
@@ -30,0 +30,0 @@ /** |
@@ -355,7 +355,18 @@ | ||
Compiler.prototype.visitExpression = function(expr){ | ||
return expr.nodes.map(function(node){ | ||
return this.visit(node); | ||
}, this).join(expr.isList | ||
? (this.compress ? ',' : ', ') | ||
: (this.isURL ? '' : ' ')); | ||
var buf = [] | ||
, self = this | ||
, len = expr.nodes.length | ||
, nodes = expr.nodes.map(function(node){ return self.visit(node); }); | ||
nodes.forEach(function(node, i){ | ||
var last = i == len - 1; | ||
buf.push(node); | ||
if ('/' == nodes[i + 1] || '/' == node) return; | ||
if (last) return; | ||
buf.push(expr.isList | ||
? (self.compress ? ',' : ', ') | ||
: (self.isURL ? '' : ' ')); | ||
}); | ||
return buf.join(''); | ||
}; | ||
@@ -362,0 +373,0 @@ |
{ "name": "stylus" | ||
, "description": "Robust, expressive, and feature-rich CSS superset" | ||
, "version": "0.12.0" | ||
, "version": "0.12.1" | ||
, "author": "TJ Holowaychuk <tj@vision-media.ca>" | ||
@@ -5,0 +5,0 @@ , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211178
7453