diff --git a/src/export.py b/src/export.py index 8a495b2..696796f 100644 --- a/src/export.py +++ b/src/export.py @@ -33,12 +33,6 @@ def export_entry(entry): grammar.appendChild(grammar_category) head.appendChild(grammar) - comment = doc.createElement("comment") - comment.textContent = entry.comment - head.appendChild(comment) - - head.appendChild(_export_label_list(doc, entry.labels)) - variants = doc.createElement("variantList") head.appendChild(variants) @@ -46,6 +40,12 @@ def export_entry(entry): variant = doc.createElement("variant") variant.textContent = v variants.appendChild(variant) + + head.appendChild(_export_label_list(doc, entry.labels)) + + comment = doc.createElement("comment") + comment.textContent = entry.comment + head.appendChild(comment) # now lets do body body = doc.createElement("body")