Permalink
Browse files

Trimming text

  • Loading branch information...
1 parent 56a070a commit 04243f0baadade265cbec57ed554ab110fde5c7a @tj tj committed Sep 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jade/compiler.js
View
@@ -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) {

0 comments on commit 04243f0

Please sign in to comment.