mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Record rendering had unnecessary new lines and indents
This commit is contained in:
parent
5442eba044
commit
00acb6c289
1 changed files with 2 additions and 3 deletions
|
@ -427,10 +427,9 @@ fn type_annotation_to_html(indent_level: usize, buf: &mut String, type_ann: &Typ
|
|||
let more_than_one_field = fields_len > 1;
|
||||
|
||||
let record_indent = indent_level + 1;
|
||||
if more_than_one_field {
|
||||
new_line(buf);
|
||||
|
||||
indent(buf, record_indent);
|
||||
if more_than_one_field {
|
||||
indent(buf, indent_level);
|
||||
}
|
||||
|
||||
buf.push('{');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue