mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
fixing extra newline in the prelude
This commit is contained in:
@@ -329,7 +329,7 @@
|
||||
}).call(this);
|
||||
rest = this.expressions.slice(preludeExps.length);
|
||||
this.expressions = preludeExps;
|
||||
if (preludeExps.length) prelude = "" + (this.compileNode(o)) + "\n\n";
|
||||
if (preludeExps.length) prelude = "" + (this.compileNode(o)) + "\n";
|
||||
this.expressions = rest;
|
||||
o.indent = TAB;
|
||||
}
|
||||
|
||||
@@ -259,7 +259,7 @@ exports.Block = class Block extends Base
|
||||
exp
|
||||
rest = @expressions[preludeExps.length...]
|
||||
@expressions = preludeExps
|
||||
prelude = "#{@compileNode o}\n\n" if preludeExps.length
|
||||
prelude = "#{@compileNode o}\n" if preludeExps.length
|
||||
@expressions = rest
|
||||
# We assume that we will need the safety wrapper.
|
||||
# This is our best guess without actually compiling.
|
||||
|
||||
Reference in New Issue
Block a user