minor fix

pull/142/head
Aevann 2023-03-26 14:27:40 +02:00
parent 23e4c76d24
commit 5c32c8215e
1 changed files with 6 additions and 5 deletions

View File

@ -637,6 +637,7 @@ def complies_with_chud(obj):
old_body_html = obj.body_html
#torture body_html
if obj.body_html:
soup = BeautifulSoup(obj.body_html, 'lxml')
tags = soup.html.body.find_all(lambda tag: tag.name not in {'blockquote','codeblock','pre'} and tag.string, recursive=False)
for tag in tags: