Browse Source

Simplify tag printing

gingerBill 3 years ago
parent
commit
d39c05b183
1 changed files with 3 additions and 5 deletions
  1. 3 5
      tools/odin-html-docs/odin_html_docs_main.odin

+ 3 - 5
tools/odin-html-docs/odin_html_docs_main.odin

@@ -633,11 +633,9 @@ write_type :: proc(using writer: ^Type_Writer, type: doc.Type, flags: Write_Type
 				do_indent(writer, flags)
 				do_indent(writer, flags)
 				write_param_entity(writer, e, next_entity, flags, name_width)
 				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, ',')
 				io.write_byte(w, ',')