summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/printer.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-23 18:52:30 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-23 18:52:30 -0500
commit2b3fdf7ea80bb7af8e6317c2ce30a4ce3236e7f6 (patch)
treeb5147e7095aa4c17ef23f22c50bb95516b9658bc /lib/handlebars/compiler/printer.js
parent0c7c37df6aa31a3e70f9eecadcaaa25928921c94 (diff)
downloadhandlebars.js-2b3fdf7ea80bb7af8e6317c2ce30a4ce3236e7f6.zip
handlebars.js-2b3fdf7ea80bb7af8e6317c2ce30a4ce3236e7f6.tar.gz
handlebars.js-2b3fdf7ea80bb7af8e6317c2ce30a4ce3236e7f6.tar.bz2
Additional test coverage cleanup
Also fixes the template._child implementation which broke with the depthed work.
Diffstat (limited to 'lib/handlebars/compiler/printer.js')
-rw-r--r--lib/handlebars/compiler/printer.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js
index be66d73..7654245 100644
--- a/lib/handlebars/compiler/printer.js
+++ b/lib/handlebars/compiler/printer.js
@@ -10,16 +10,14 @@ export function PrintVisitor() {
PrintVisitor.prototype = new Visitor();
-PrintVisitor.prototype.pad = function(string, newline) {
+PrintVisitor.prototype.pad = function(string) {
var out = "";
for(var i=0,l=this.padding; i<l; i++) {
out = out + " ";
}
- out = out + string;
-
- if(newline !== false) { out = out + "\n"; }
+ out = out + string + "\n";
return out;
};