Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jade

Package Overview
Dependencies
Maintainers
0
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jade - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

5

History.md
0.10.2 / 2011-03-30
==================
* Fixed pipeless text bug with missing outdent
0.10.1 / 2011-03-28

@@ -3,0 +8,0 @@ ==================

2

lib/jade.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc