From cc817f992464cbb067531d43d73b39debf86676b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Wed, 10 May 2023 08:50:52 +0500 Subject: [PATCH] Fixed misplaces ul/ol in node_to_plaintext --- mastoposter/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastoposter/utils.py b/mastoposter/utils.py index f46d789..3cab198 100644 --- a/mastoposter/utils.py +++ b/mastoposter/utils.py @@ -264,7 +264,7 @@ def node_to_plaintext(el: PageElement) -> str: " \u2022 %s" % li.replace("\n", "\n ").strip() for li in children ) - if el.name == "ol" + if el.name == "ul" else ( "%d. %s" % (i, li.replace("\n", "\n ").strip()) for i, li in enumerate(children)