diff options
author | kpdecker <kpdecker@gmail.com> | 2013-01-20 21:19:39 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-01-20 21:19:39 -0600 |
commit | 0f6651bad94454be90a1b1b94419695d394cc8aa (patch) | |
tree | 3791f1bfdbf093d291b10f3d856599e1fbe99131 /lib/handlebars/compiler/compiler.js | |
parent | 231543feaf165605bb369026ab244bb4a8058657 (diff) | |
download | handlebars.js-0f6651bad94454be90a1b1b94419695d394cc8aa.zip handlebars.js-0f6651bad94454be90a1b1b94419695d394cc8aa.tar.gz handlebars.js-0f6651bad94454be90a1b1b94419695d394cc8aa.tar.bz2 |
Formatting updates for inlined content
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index caba954..a111ae7 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -740,7 +740,7 @@ Handlebars.JavaScriptCompiler = function() {}; if (this.options.stringParams) { 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] @@ -988,7 +988,7 @@ Handlebars.JavaScriptCompiler = function() {}; // Get or create the current stack name for use by the inline 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(); } } else { |