mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Add indent call after when's if
This commit is contained in:
parent
ad1e3369c5
commit
769baa9f63
5 changed files with 50 additions and 0 deletions
|
@ -1616,6 +1616,7 @@ fn fmt_when<'a>(
|
|||
}
|
||||
|
||||
if let Some(guard_expr) = &branch.guard {
|
||||
buf.indent(indent + INDENT);
|
||||
buf.push_str(" if");
|
||||
buf.spaces(1);
|
||||
guard_expr.format_with_options(buf, Parens::NotNeeded, Newlines::Yes, indent + INDENT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue