Simplify tag printing

This commit is contained in:
gingerBill
2022-01-20 00:19:58 +00:00
parent 3a3cb521ab
commit d39c05b183

View File

@@ -633,11 +633,9 @@ write_type :: proc(using writer: ^Type_Writer, type: doc.Type, flags: Write_Type
do_indent(writer, flags)
write_param_entity(writer, e, next_entity, flags, name_width)
if len(tags) == len(type_entities) {
if tag := str(tags[i]); tag != "" {
io.write_byte(w, ' ')
io.write_quoted_string(w, tag)
}
if tag := str(tags[i]); tag != "" {
io.write_byte(w, ' ')
io.write_quoted_string(w, tag)
}
io.write_byte(w, ',')