Skip to content

Commit

Permalink
Merge pull request #322 from nationalarchives/support-wrapup-tag
Browse files Browse the repository at this point in the history
Support wrapUp tag
  • Loading branch information
jacksonj04 authored Dec 4, 2023
2 parents d22480c + 56c8899 commit ef84512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def parse_file(file_data):
:returns judgement_content_text: all content elements in judgment
"""
soup = BeautifulSoup.BeautifulSoup(str(file_data), "xml")
judgment_content = soup.find_all(re.compile(r"(content|intro)"))
judgment_content = soup.find_all(re.compile(r"(content|intro|wrapUp)"))
judgment_content_text = " ".join(
[content.text.strip() for content in judgment_content]
)
Expand Down

0 comments on commit ef84512

Please sign in to comment.