mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Workaround for broken XHTML in some Washington Post articles
This commit is contained in:
parent
bb11c80871
commit
a5f13fa593
@ -46,3 +46,10 @@ class WashingtonPost(BasicNewsRecipe):
|
|||||||
div['style'] = ''
|
div['style'] = ''
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
def preprocess_html(self, soup):
|
||||||
|
for tag in soup.findAll('font'):
|
||||||
|
if tag.has_key('size'):
|
||||||
|
if tag['size'] == '+2':
|
||||||
|
if tag.b:
|
||||||
|
return soup
|
||||||
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user