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:
parent
d2b0404188
commit
37705e712b
2 changed files with 2 additions and 2 deletions
|
@ -621,7 +621,7 @@
|
||||||
|
|
||||||
Comment.prototype.compileNode = function(o, level) {
|
Comment.prototype.compileNode = function(o, level) {
|
||||||
var code;
|
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;
|
if ((level || o.level) === LEVEL_TOP) code = o.indent + code;
|
||||||
return code;
|
return code;
|
||||||
};
|
};
|
||||||
|
|
|
@ -448,7 +448,7 @@ exports.Comment = class Comment extends Base
|
||||||
makeReturn: THIS
|
makeReturn: THIS
|
||||||
|
|
||||||
compileNode: (o, level) ->
|
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 = o.indent + code if (level or o.level) is LEVEL_TOP
|
||||||
code
|
code
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue