Skip to content

Commit

Permalink
cleaned up block comment output; fixes #1186
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Aug 7, 2011
1 parent 6608a7a commit 35a30fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/nodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/nodes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ exports.Comment = class Comment extends Base
makeReturn: THIS

compileNode: (o, level) ->
code = '/*' + multident(@comment, @tab) + '*/'
code = '/*' + multident(@comment, @tab) + "\n#{@tab}*/\n"
code = o.indent + code if (level or o.level) is LEVEL_TOP
code

Expand Down Expand Up @@ -1851,4 +1851,5 @@ utility = (name) ->
ref

multident = (code, tab) ->
code.replace /\n/g, '$&' + tab
code = code.replace /\n/g, '$&' + tab
code.replace /\s+$/, ''

0 comments on commit 35a30fb

Please sign in to comment.