Skip to content

Commit

Permalink
Add whitespace control to partial block statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Aug 19, 2015
1 parent 18fcc0c commit 7fa69a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/handlebars/compiler/whitespace-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7fa69a8

Please sign in to comment.