1
0
Fork 0

Fixed misplaces ul/ol in node_to_plaintext

This commit is contained in:
Anna “CyberTailor” 2023-05-10 08:50:52 +05:00 committed by hkc
parent 9d8c8252a4
commit cc817f9924
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
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)