Merge branch 'CyberTailor-ul_ol'

This commit is contained in:
Casey 2023-05-10 09:02:44 +03:00
commit 2fac32e770
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() " \u2022 %s" % li.replace("\n", "\n ").strip()
for li in children for li in children
) )
if el.name == "ol" if el.name == "ul"
else ( else (
"%d. %s" % (i, li.replace("\n", "\n ").strip()) "%d. %s" % (i, li.replace("\n", "\n ").strip())
for i, li in enumerate(children) for i, li in enumerate(children)