mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
fixed formatting error for if statement formatting
This commit is contained in:
parent
c3d296a026
commit
ffdce07d29
1 changed files with 10 additions and 0 deletions
|
@ -658,8 +658,18 @@ fn fmt_if<'a>(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Expr::SpaceAfter(expr_above, spaces_below_expr) => {
|
||||
newline(buf, return_indent);
|
||||
fmt_expr(buf, &expr_above, return_indent, false, false);
|
||||
fmt_condition_spaces(buf, spaces_below_expr.iter(), return_indent);
|
||||
newline(buf, indent);
|
||||
}
|
||||
|
||||
_ => {
|
||||
newline(buf, return_indent);
|
||||
fmt_expr(buf, &loc_condition.value, return_indent, false, false);
|
||||
newline(buf, indent);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue