Skip to content

Commit

Permalink
Merge pull request #922 from tatuylonen/gentlestrip
Browse files Browse the repository at this point in the history
[en] No need to use .strip() chaining
  • Loading branch information
kristian-clausal authored Nov 26, 2024
2 parents 459e051 + f8ba806 commit cfb637d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiktextract/extractor/en/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ def process_gloss_header(
# tags, you can add them to WORD_LEVEL_HEAD_TEMPLATES
for templ_data in term_label_templates:
print(templ_data)
expan = templ_data.get("expansion", "").strip("(").strip(")")
expan = templ_data.get("expansion", "").strip("().,; ")
if not expan:
continue
tlb_tagsets, tlb_topics = decode_tags(expan)
Expand Down

0 comments on commit cfb637d

Please sign in to comment.