From 2055b3bdcce3ee997c56d3c7ea8ea8b354b4e7d5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 1 Nov 2009 09:04:07 -0700 Subject: [PATCH] IGN:... --- resources/recipes/economist.recipe | 6 ++++-- src/calibre/ebooks/oeb/iterator.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/recipes/economist.recipe b/resources/recipes/economist.recipe index a5e43e360a..75cb86863a 100644 --- a/resources/recipes/economist.recipe +++ b/resources/recipes/economist.recipe @@ -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') diff --git a/src/calibre/ebooks/oeb/iterator.py b/src/calibre/ebooks/oeb/iterator.py index d16cdc9e10..09ae23ada3 100644 --- a/src/calibre/ebooks/oeb/iterator.py +++ b/src/calibre/ebooks/oeb/iterator.py @@ -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: