Skip to content

Commit

Permalink
Release 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 5, 2010
1 parent eacbba7 commit 8d9ba87
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
17 changes: 17 additions & 0 deletions History.md
@@ -1,4 +1,21 @@

0.5.2 / 2010-10-05
==================

* Added; Text introduces newlines to mimic the grammar.
Whitespace handling is a little tricky with this sort of grammar.
Jade will now mimic the written grammar, meaning that text blocks
using the "|" margin character will introduce a literal newline,
where as immediate tag text (ex "a(href='#') Link") will not.

This may not be ideal, but it makes more sense than what Jade was
previously doing.

* Added `Tag#text` to disambiguate between immediate / block text
* Removed _pretty_ option (was kinda useless in the state it was in)
* Reverted ignoring of newlines. Closes #92.
* Fixed; `Parser#parse()` ignoring newlines

0.5.1 / 2010-10-04
==================

Expand Down
2 changes: 1 addition & 1 deletion lib/jade.js
Expand Up @@ -18,7 +18,7 @@ var Parser = require('./parser'),
* Library version.
*/

exports.version = '0.5.1';
exports.version = '0.5.2';

/**
* Intermediate JavaScript cache.
Expand Down
3 changes: 0 additions & 3 deletions lib/parser.js
Expand Up @@ -173,9 +173,6 @@ Parser.prototype = {
this.lexer.defer(this.lexer.tok('tag', 'div'));
this.lexer.defer(tok);
return this.parseExpr();
case 'newline':
this.advance;
return this.parseExpr();
}
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "jade",
"description": "Jade template engine",
"version": "0.5.1",
"version": "0.5.2",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"main": "./index.js",
"bin": { "jade": "./bin/jade" },
Expand Down

0 comments on commit 8d9ba87

Please sign in to comment.