This commit is contained in:
Kovid Goyal 2016-05-11 16:54:46 +05:30
parent b07319250d
commit 77ef24afde

View File

@ -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')