forked from hkc/mastoposter
Merge branch 'CyberTailor-ol_numeration'
This commit is contained in:
commit
277c32b09d
|
@ -267,7 +267,7 @@ def node_to_plaintext(el: PageElement) -> str:
|
||||||
if el.name == "ul"
|
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, 1)
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
return str.join("", map(node_to_plaintext, el.children))
|
return str.join("", map(node_to_plaintext, el.children))
|
||||||
|
|
Loading…
Reference in New Issue