mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't print extra newline in multiline |
patterns
This commit is contained in:
parent
d1ba89f97f
commit
cab096b4e1
2 changed files with 9 additions and 1 deletions
|
@ -723,7 +723,7 @@ fn fmt_when<'a, 'buf>(
|
|||
}
|
||||
} else {
|
||||
if is_multiline_patterns {
|
||||
buf.newline();
|
||||
buf.ensure_ends_in_newline();
|
||||
// Indent an extra level for the `|`;
|
||||
// otherwise it'll be at the start of the line,
|
||||
// and will be incorrectly parsed as a pattern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue