Permalink
Browse files

Fix for unit tests: a left over extra \n in generated code.

The \n was there in order to help with reporting accurate
error location information for render-time errors, but I
haven't worked the details out for that yet, so just
removing the extra char for now...
  • Loading branch information...
1 parent 86beadc commit d137f9b460131dc51543f58898f0996c7768d9ce @laurie71 committed Apr 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jqtpl.js
View
@@ -283,7 +283,7 @@ function buildTmplFn(markup) {
var source = (
'var call,_=[],$data=$item.data;' +
// Introduce the data as local variables using with(){}
- 'with($data){_.push("\\n' +
+ 'with($data){_.push("' +
source +
'");}' +
'return _.join("");'

0 comments on commit d137f9b

Please sign in to comment.