1
0
Fork 0

Merge branch 'CyberTailor-ol_numeration'

This commit is contained in:
Casey 2023-05-10 12:30:38 +03:00
commit 277c32b09d
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

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