Don't put spaces in types in docs

This commit is contained in:
Richard Feldman 2022-09-12 20:26:48 -04:00
parent 75a0eeacc7
commit 0a3a9584c4
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -502,8 +502,6 @@ fn type_annotation_to_html(indent_level: usize, buf: &mut String, type_ann: &Typ
for (index, tag) in tags.iter().enumerate() {
if is_multiline {
indent(buf, next_indent_level);
} else {
buf.push(' ');
}
buf.push_str(tag.name.as_str());
@ -524,8 +522,6 @@ fn type_annotation_to_html(indent_level: usize, buf: &mut String, type_ann: &Typ
if is_multiline {
indent(buf, tag_union_indent);
} else {
buf.push(' ');
}
buf.push(']');