1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

removing the extra newline that block comments take

This commit is contained in:
Jeremy Ashkenas 2011-09-18 17:19:09 -05:00
parent d2b0404188
commit 37705e712b
2 changed files with 2 additions and 2 deletions

View file

@ -621,7 +621,7 @@
Comment.prototype.compileNode = function(o, level) {
var code;
code = '/*' + multident(this.comment, this.tab) + ("\n" + this.tab + "*/\n");
code = '/*' + multident(this.comment, this.tab) + ("\n" + this.tab + "*/");
if ((level || o.level) === LEVEL_TOP) code = o.indent + code;
return code;
};

View file

@ -448,7 +448,7 @@ exports.Comment = class Comment extends Base
makeReturn: THIS
compileNode: (o, level) ->
code = '/*' + multident(@comment, @tab) + "\n#{@tab}*/\n"
code = '/*' + multident(@comment, @tab) + "\n#{@tab}*/"
code = o.indent + code if (level or o.level) is LEVEL_TOP
code