mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Ensure we don't over-indent in type headers (fixes #7358)
This commit is contained in:
parent
d82accf83d
commit
7cb2d83168
5 changed files with 115 additions and 1 deletions
|
@ -549,7 +549,11 @@ impl<'a> Formattable for TypeHeader<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
buf.ensure_ends_with_whitespace();
|
||||
if last_multiline {
|
||||
buf.ensure_ends_with_newline();
|
||||
} else {
|
||||
buf.ensure_ends_with_whitespace();
|
||||
}
|
||||
|
||||
last_after = var.after;
|
||||
last_multiline = var.item.is_multiline();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue