minor fix
parent
23e4c76d24
commit
5c32c8215e
|
@ -637,6 +637,7 @@ def complies_with_chud(obj):
|
||||||
old_body_html = obj.body_html
|
old_body_html = obj.body_html
|
||||||
|
|
||||||
#torture body_html
|
#torture body_html
|
||||||
|
if obj.body_html:
|
||||||
soup = BeautifulSoup(obj.body_html, 'lxml')
|
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)
|
tags = soup.html.body.find_all(lambda tag: tag.name not in {'blockquote','codeblock','pre'} and tag.string, recursive=False)
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
|
|
Loading…
Reference in New Issue