mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't indent multiple patterns
This commit is contained in:
parent
f066ee12dc
commit
28e0a9e382
1 changed files with 1 additions and 4 deletions
|
@ -757,10 +757,7 @@ fn fmt_when<'a, 'buf>(
|
|||
} else {
|
||||
if is_multiline_patterns {
|
||||
buf.ensure_ends_with_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
|
||||
buf.indent(indent + INDENT + INDENT);
|
||||
buf.indent(indent + INDENT);
|
||||
buf.push('|');
|
||||
} else {
|
||||
buf.push_str(" |");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue