From 0724348f443c33be3e5de773e8fa689ab1e5b93f Mon Sep 17 00:00:00 2001 From: Hubert BOSSOT Date: Sat, 3 Feb 2024 17:42:41 +0100 Subject: [PATCH] Add TODO for after refacto --- src/wiktionary/fr_wiktionary_format.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wiktionary/fr_wiktionary_format.py b/src/wiktionary/fr_wiktionary_format.py index e59152e..19099a8 100644 --- a/src/wiktionary/fr_wiktionary_format.py +++ b/src/wiktionary/fr_wiktionary_format.py @@ -549,6 +549,7 @@ def treat_page(page): elif current_template in ('référence nécessaire', 'réf?', 'réf ?', 'refnec', 'réfnéc', 'source?'): page_content2 = page_content[end_position + 1:] # TODO with regex = r'lang *= *' + # TODO replace langue= by lang= if 'lang=' not in page_content2 or \ (page_content2.find('lang=') > page_content2.find('}}') and \ page_content2.find('lang=') > page_content2.find('\n')):