Skip to content

Commit

Permalink
Add TODO for after refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertbossot committed Feb 3, 2024
1 parent a643973 commit 0724348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wiktionary/fr_wiktionary_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand Down

0 comments on commit 0724348

Please sign in to comment.