Comparing version 0.23.0 to 0.24.0
@@ -304,3 +304,3 @@ | ||
// pretty print | ||
if (this.pp && !~inlineTags.indexOf(name) && !tag.textOnly) { | ||
if (this.pp && !~inlineTags.indexOf(name) && !tag.textOnly && !tag.isText()) { | ||
this.buffer('\\n' + Array(this.indents).join(' ')); | ||
@@ -307,0 +307,0 @@ } |
@@ -23,3 +23,3 @@ /*! | ||
exports.version = '0.23.0'; | ||
exports.version = '0.24.0'; | ||
@@ -26,0 +26,0 @@ /** |
@@ -498,3 +498,3 @@ | ||
if ('' == key) return; | ||
key = key.replace(/^['"]|['"]$/g, ''); | ||
key = key.replace(/^['"]|['"]$/g, '').replace('!', ''); | ||
tok.escaped[key] = escapedAttr; | ||
@@ -501,0 +501,0 @@ tok.attrs[key] = '' == val |
@@ -82,1 +82,12 @@ | ||
}; | ||
/** | ||
* Check if this tag's block contains only text nodes. Used for pretty printing. | ||
* | ||
* @return {Boolean} | ||
* @api private | ||
*/ | ||
Tag.prototype.isText = function(){ | ||
return !this.block.nodes.length; | ||
}; |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade", |
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
183130
5444