Skip to content

Commit

Permalink
julefmt: fix statement spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 29, 2024
1 parent 88fffc3 commit 3ba33e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ impl ScopeFormatter {
self.write("\n")
}
z = self.fmt.row
self.fmt.add_global_padding_for_comment(stmt.token.row)
self.fmt.add_global_padding_for_comment(stmt.token.row - 1) // Use -1 row for avoid inline comments.
self.fmt.row = self.fmt.write_comments_except(stmt.token.row)
if stmt.token.row - self.fmt.row == 0 {
self.fmt.row = z
Expand Down

0 comments on commit 3ba33e7

Please sign in to comment.