mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
tools: Support for <ul/> in revision history
This commit is contained in:
parent
8c61ac08b2
commit
cb8936de67
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user