Skip to content

Commit

Permalink
julefmt: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 28, 2024
1 parent 873b5fc commit f8d799b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ impl Formatter {
ret
}
let first = self.f.use_decls[0]
if self.cm.first(first.token.row) == nil && first.token.row - self.row > 1 {
self.write("\n")
}
self.add_global_padding_for_comment(first.token.row)
self.row = self.write_comments(first.token.row)
if first.token.row - self.row > 1 {
Expand Down

0 comments on commit f8d799b

Please sign in to comment.