Formatting updates for inlined content

This commit is contained in:
kpdecker
2013-01-20 21:19:39 -06:00
parent 231543feaf
commit 0f6651bad9
+2 -2
View File
@@ -740,7 +740,7 @@ Handlebars.JavaScriptCompiler = function() {};
if (this.options.stringParams) { if (this.options.stringParams) {
this.register('hashTypes', '{' + hash.types.join(',') + '}'); this.register('hashTypes', '{' + hash.types.join(',') + '}');
} }
this.pushStack('{' + hash.values.join(',\n\t') + '\n }', true); this.pushStack('{\n ' + hash.values.join(',\n ') + '\n }', true);
}, },
// [pushString] // [pushString]
@@ -988,7 +988,7 @@ Handlebars.JavaScriptCompiler = function() {};
// Get or create the current stack name for use by the inline // Get or create the current stack name for use by the inline
var name = allowInline && this.stackSlot ? this.topStackName() : this.incrStack(); var name = allowInline && this.stackSlot ? this.topStackName() : this.incrStack();
prefix = '(' + this.pushStack(name, true) + ' = ' + top + '),\n\t\t'; prefix = '(' + this.pushStack(name, true) + ' = ' + top + '),';
stack = this.topStack(); stack = this.topStack();
} }
} else { } else {