diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 1aba34b..1303d8f 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -179,7 +179,12 @@ Compiler.prototype = { this.opcode('pushContext'); } - this.opcode('invokePartial', partialName.name, partial.indent || ''); + var indent = partial.indent || ''; + if (this.options.preventIndent && indent) { + this.opcode('appendContent', indent); + indent = ''; + } + this.opcode('invokePartial', partialName.name, indent); this.opcode('append'); }, |