forked from hkc/mastoposter
Fix numeration in node_to_plaintext
This commit is contained in:
parent
a2e5f15c21
commit
a8129d2a88
|
@ -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