From a8129d2a8881cd08a987c9e98a222e5f765da8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=E2=80=9CCyberTailor=E2=80=9D?= Date: Wed, 10 May 2023 14:27:12 +0500 Subject: [PATCH] Fix numeration 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 3cab198..391f630 100644 --- a/mastoposter/utils.py +++ b/mastoposter/utils.py @@ -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))