mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
b07319250d
commit
77ef24afde
@ -925,7 +925,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
if (link.get('type') or '').lower() == 'text/css' and (link.get('rel') or '').lower() == 'stylesheet':
|
if (link.get('type') or '').lower() == 'text/css' and (link.get('rel') or '').lower() == 'stylesheet':
|
||||||
link.extract()
|
link.extract()
|
||||||
for style in soup.findAll('style'):
|
for style in soup.findAll('style'):
|
||||||
soup.extract()
|
style.extract()
|
||||||
head = soup.find('head')
|
head = soup.find('head')
|
||||||
if not head:
|
if not head:
|
||||||
head = soup.find('body')
|
head = soup.find('body')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user