mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
...
This commit is contained in:
parent
b07319250d
commit
77ef24afde
1 changed files with 1 additions and 1 deletions
|
|
@ -925,7 +925,7 @@ def _postprocess_html(self, soup, first_fetch, job_info):
|
|||
if (link.get('type') or '').lower() == 'text/css' and (link.get('rel') or '').lower() == 'stylesheet':
|
||||
link.extract()
|
||||
for style in soup.findAll('style'):
|
||||
soup.extract()
|
||||
style.extract()
|
||||
head = soup.find('head')
|
||||
if not head:
|
||||
head = soup.find('body')
|
||||
|
|
|
|||
Loading…
Reference in a new issue