From b780d707ab3208828b28caece77ffada0dc07b89 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 15 May 2011 10:16:46 -0400 Subject: [PATCH] fixing over whitespace-ing from the previous commit. --- lib/nodes.js | 2 +- src/nodes.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodes.js b/lib/nodes.js index 8e7c9285..b40895b8 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -308,7 +308,7 @@ if (scope.expressions === this) { declars = o.scope.hasDeclarations(); assigns = scope.hasAssignments; - if (declars || assigns) { + if ((declars || assigns) && i) { code += '\n'; } if (declars) { diff --git a/src/nodes.coffee b/src/nodes.coffee index 8f1acb84..327523a2 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -252,7 +252,7 @@ exports.Block = class Block extends Base if scope.expressions is this declars = o.scope.hasDeclarations() assigns = scope.hasAssignments - if declars or assigns + if (declars or assigns) and i code += '\n' if declars code += "#{@tab}var #{ scope.declaredVariables().join(', ') };\n"