Comparing version 0.10.1 to 0.10.2
0.10.2 / 2011-03-30 | ||
================== | ||
* Fixed pipeless text bug with missing outdent | ||
0.10.1 / 2011-03-28 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -22,3 +22,3 @@ | ||
exports.version = '0.10.1'; | ||
exports.version = '0.10.2'; | ||
@@ -25,0 +25,0 @@ /** |
@@ -23,3 +23,3 @@ | ||
this.indentRe = null; | ||
this.textPipe = true; | ||
this.pipeless = false; | ||
}; | ||
@@ -455,11 +455,11 @@ | ||
* Pipe-less text consumed only when | ||
* textPipe is false; | ||
* pipeless is true; | ||
*/ | ||
pipelessText: function() { | ||
if (false === this.textPipe) { | ||
if (this.pipeless) { | ||
if ('\n' == this.input[0]) return; | ||
var i = this.input.indexOf('\n') | ||
, str = this.input.substr(0, i); | ||
if (-1 == i) return; | ||
var i = this.input.indexOf('\n'); | ||
if (-1 == i) i = this.input.length; | ||
var str = this.input.substr(0, i); | ||
this.consume(str.length); | ||
@@ -466,0 +466,0 @@ return this.tok('text', str); |
@@ -257,5 +257,5 @@ | ||
this.lexer.textPipe = false; | ||
this.lexer.pipeless = true; | ||
block = this.parseTextBlock(); | ||
this.lexer.textPipe = true; | ||
this.lexer.pipeless = false; | ||
@@ -300,4 +300,3 @@ var node = new nodes.Filter(tok.val, block, attrs && attrs.attrs); | ||
parseTextBlock: function(){ | ||
var text = new nodes.Text | ||
, pipeless = false === this.lexer.textPipe; | ||
var text = new nodes.Text; | ||
text.line = this.line(); | ||
@@ -424,5 +423,5 @@ this.expect('indent'); | ||
if (tag.textOnly) { | ||
this.lexer.textPipe = false; | ||
this.lexer.pipeless = true; | ||
tag.block = this.parseTextBlock(); | ||
this.lexer.textPipe = true; | ||
this.lexer.pipeless = false; | ||
} else { | ||
@@ -429,0 +428,0 @@ var block = this.parseBlock(); |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade", |
Sorry, the diff of this file is not supported yet
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
147272
3845