Skip to content

Commit

Permalink
Do not remove Suisse|précision=
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertbossot committed Aug 18, 2024
1 parent c9b59b5 commit e1a504e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wiktionary/fr_wiktionary_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,8 @@ def treat_page(page):
else:
if debug_level > 0:
print(' Modèle régional : non catégorisé dans la prononciation')
if final_page_content.rfind('{{') != -1:
if '{{' in final_page_content and final_page_content.find('=') == -1 or \
final_page_content.find('=') > final_page_content.find('}}'):
final_page_content2 = final_page_content[:final_page_content.rfind('{{')]
if (
add_language_code
Expand Down

0 comments on commit e1a504e

Please sign in to comment.