Record rendering had unnecessary new lines and indents

This commit is contained in:
Chadtech 2021-07-11 11:51:35 -04:00
parent 5442eba044
commit 00acb6c289

View File

@ -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('{');