This commit is contained in:
Kovid Goyal 2009-11-01 09:04:07 -07:00
parent 8f8676d25a
commit 2055b3bdcc
2 changed files with 5 additions and 3 deletions

View File

@ -16,9 +16,11 @@ class Economist(BasicNewsRecipe):
language = 'en'
__author__ = "Kovid Goyal"
description = 'Global news and current affairs from a European perspective'
oldest_article = 7.0
INDEX = 'http://www.economist.com/printedition'
description = ('Global news and current affairs from a European perspective.'
' Needs a subscription from ')+INDEX
oldest_article = 7.0
cover_url = 'http://www.economist.com/images/covers/currentcovereu_large.jpg'
remove_tags = [dict(name=['script', 'noscript', 'title'])]
remove_tags_before = dict(name=lambda tag: tag.name=='title' and tag.parent.name=='body')

View File

@ -147,7 +147,7 @@ class EbookIterator(object):
for bad, good in bad_map.items():
if bad in match.group(1):
prints('Substituting font family: %s -> %s'%(bad, good))
return 'font-family: %s;'%good
return match.group().replace(bad, '"%s"'%good)
for csspath in css_files:
with open(csspath, 'r+b') as f: