Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Trimming text

  • Loading branch information...
commit 04243f0baadade265cbec57ed554ab110fde5c7a 1 parent 56a070a
@tj tj authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jade/compiler.js
View
4 lib/jade/compiler.js
@@ -99,7 +99,7 @@ Compiler.prototype = {
visitCode: function(code){
if (code.buffer) {
- this.buffer(code.val, code.escape);
+ this.buffer(code.val.trimLeft(), code.escape);
} else {
this.buf.push(code.val);
}
@@ -157,7 +157,7 @@ function interpolate(str){
}
function text(node){
- return interpolate(node.lines.join('\\n'));
+ return interpolate(node.lines.join('\\n').trimLeft());
}
function escape(str) {
Please sign in to comment.
Something went wrong with that request. Please try again.