Skip to content

Commit

Permalink
Don't pre-expand list start/end "{" and "}" template
Browse files Browse the repository at this point in the history
Pre-expand them makes the list item nodes nested in HTML nodes, which
is unnecessary.
  • Loading branch information
xxyzz committed Sep 25, 2023
1 parent c8f7d45 commit 2c4523e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wiktextract/extractor/fr/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def parse_page(
do_not_pre_expand={
"trad-début", # don't expand translation start/end tempaltes
"trad-fin",
"(", # similar to "trad-debut", pre-expand breaks node structre
")",
},
)

Expand Down

0 comments on commit 2c4523e

Please sign in to comment.