forked from hkc/mastoposter
Fixed misplaces ul/ol in node_to_plaintext
This commit is contained in:
parent
d740ddb0b1
commit
c60f19d7c6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue