Change the order in output xml: entry(comment, variants, labels)
This commit is contained in:
parent
1039a686cc
commit
be4c8d0bf1
|
@ -33,12 +33,6 @@ def export_entry(entry):
|
||||||
grammar.appendChild(grammar_category)
|
grammar.appendChild(grammar_category)
|
||||||
head.appendChild(grammar)
|
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")
|
variants = doc.createElement("variantList")
|
||||||
head.appendChild(variants)
|
head.appendChild(variants)
|
||||||
|
|
||||||
|
@ -47,6 +41,12 @@ def export_entry(entry):
|
||||||
variant.textContent = v
|
variant.textContent = v
|
||||||
variants.appendChild(variant)
|
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
|
# now lets do body
|
||||||
body = doc.createElement("body")
|
body = doc.createElement("body")
|
||||||
entry_xml.appendChild(body)
|
entry_xml.appendChild(body)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user