mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
Record rendering had unnecessary new lines and indents
This commit is contained in:
parent
5442eba044
commit
00acb6c289
@ -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…
Reference in New Issue
Block a user