mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't indent next expr after multiline binop
This commit is contained in:
parent
2013e308f7
commit
9e19baef59
1 changed files with 1 additions and 7 deletions
|
@ -549,13 +549,7 @@ fn fmt_binops<'a, 'buf>(
|
||||||
buf.spaces(1);
|
buf.spaces(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
let next_indent = if is_multiline {
|
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, indent);
|
||||||
indent + INDENT
|
|
||||||
} else {
|
|
||||||
indent
|
|
||||||
};
|
|
||||||
|
|
||||||
loc_right_side.format_with_options(buf, apply_needs_parens, Newlines::Yes, next_indent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn format_spaces<'a, 'buf>(
|
fn format_spaces<'a, 'buf>(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue