mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-30 21:22:15 -05:00
tooling: make extract-metadata work with element-less <remark/>
This commit is contained in:
parent
ee3095e24b
commit
130b97e708
@ -40,6 +40,8 @@ def extract_xep_metadata(document):
|
|||||||
remark_children = minidom_children(remark_el)
|
remark_children = minidom_children(remark_el)
|
||||||
if len(remark_children) == 1 and remark_children[0].tagName == "p":
|
if len(remark_children) == 1 and remark_children[0].tagName == "p":
|
||||||
last_revision_remark = minidom_get_text(remark_children[0])
|
last_revision_remark = minidom_get_text(remark_children[0])
|
||||||
|
elif len(remark_children) == 0:
|
||||||
|
last_revision_remark = minidom_get_text(remark_el) or None
|
||||||
|
|
||||||
if last_revision_remark is not None:
|
if last_revision_remark is not None:
|
||||||
initials_el = minidom_find_child(latest_revision, "initials")
|
initials_el = minidom_find_child(latest_revision, "initials")
|
||||||
|
Loading…
Reference in New Issue
Block a user