Change the order in output xml: entry(comment, variants, labels)

This commit is contained in:
Ozbolt Menegatti 2019-11-20 19:09:12 +01:00
parent 1039a686cc
commit be4c8d0bf1

View File

@ -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)
@ -47,6 +41,12 @@ def export_entry(entry):
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")
entry_xml.appendChild(body)