Fixed misplaces ul/ol in node_to_plaintext

This commit is contained in:
Anna “CyberTailor” 2023-05-10 08:50:52 +05:00
parent d740ddb0b1
commit c60f19d7c6
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ def node_to_plaintext(el: PageElement) -> str:
" \u2022 %s" % li.replace("\n", "\n ").strip()
for li in children
)
if el.name == "ol"
if el.name == "ul"
else (
"%d. %s" % (i, li.replace("\n", "\n ").strip())
for i, li in enumerate(children)