mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Force newline for multi-line closures where the inner element is not outdentable
This commit is contained in:
parent
14d6f7c92a
commit
f721569421
7 changed files with 166 additions and 109 deletions
|
@ -2016,6 +2016,7 @@ fn fmt_closure<'a>(
|
|||
loc_ret.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent);
|
||||
}
|
||||
_ => {
|
||||
buf.ensure_ends_with_newline();
|
||||
loc_ret.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, body_indent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue