From 7fa69a8a265d85d774de4c6d8789124c379d881c Mon Sep 17 00:00:00 2001 From: kpdecker Date: Tue, 18 Aug 2015 22:48:00 -0700 Subject: [PATCH] Add whitespace control to partial block statements --- lib/handlebars/compiler/whitespace-control.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/handlebars/compiler/whitespace-control.js b/lib/handlebars/compiler/whitespace-control.js index d1b743d7e..6c8a9864f 100644 --- a/lib/handlebars/compiler/whitespace-control.js +++ b/lib/handlebars/compiler/whitespace-control.js @@ -61,7 +61,9 @@ WhitespaceControl.prototype.Program = function(program) { return program; }; -WhitespaceControl.prototype.BlockStatement = function(block) { + +WhitespaceControl.prototype.BlockStatement = +WhitespaceControl.prototype.PartialBlockStatement = function(block) { this.accept(block.program); this.accept(block.inverse);