From 9b68cb45d3a7ff1ada80378c0d3683f85d822942 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Oct 2022 13:48:42 +0200 Subject: -use sourceline, not sourcepos --- talermerchantdemos/blog/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'talermerchantdemos/blog/content.py') diff --git a/talermerchantdemos/blog/content.py b/talermerchantdemos/blog/content.py index e80219c..ed8243c 100644 --- a/talermerchantdemos/blog/content.py +++ b/talermerchantdemos/blog/content.py @@ -106,7 +106,7 @@ def add_from_html(resource_name, lang): paragraphs = soup.find_all("p") lists = soup.find_all("li") if (len(paragraphs) > 0) and (len(lists) > 0): - if (paragraphs[0].sourcepos > lists[0].sourcepos): + if (paragraphs[0].sourceline > lists[0].sourceline): titleat = lists else: titleat = paragraphs -- cgit v1.2.3