mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-22 17:41:45 +00:00
Fix pipe indents in when
This commit is contained in:
parent
1cc97fcfa7
commit
6d324590da
5 changed files with 65 additions and 3 deletions
|
@ -1709,11 +1709,11 @@ fn fmt_when<'a>(
|
|||
} else {
|
||||
if is_multiline_patterns {
|
||||
buf.ensure_ends_with_newline();
|
||||
buf.indent(indent + INDENT);
|
||||
buf.push('|');
|
||||
} else {
|
||||
buf.push_str(" |");
|
||||
buf.ensure_ends_with_whitespace();
|
||||
}
|
||||
buf.indent(indent + INDENT);
|
||||
buf.push_str("|");
|
||||
|
||||
buf.spaces(1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue