1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

tools: Support for <ul/> in revision history

This commit is contained in:
Jonas Schäfer 2019-01-13 12:20:01 +01:00
parent 8c61ac08b2
commit cb8936de67

View File

@ -35,6 +35,10 @@ def extract_revision_text(remark_el):
for child in remark_children:
if child.tagName == "p":
lines.append(minidom_get_text(child))
elif child.tagName == "ul":
for ul_child in minidom_children(child):
if ul_child.tagName == "li":
lines.append("* {}".format(minidom_get_text(ul_child)))
return "\n".join(lines)