mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Don't add more newlines than necessary
This commit is contained in:
parent
87b7a9ba3b
commit
267bae5dec
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ fn fmt_bin_ops<'a, 'buf>(
|
|||
loc_left_side.format_with_options(buf, apply_needs_parens, Newlines::No, curr_indent);
|
||||
|
||||
if is_multiline {
|
||||
buf.newline();
|
||||
buf.ensure_ends_in_newline();
|
||||
curr_indent = indent + INDENT;
|
||||
buf.indent(curr_indent);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue