From 04c800a29be4eb6779748cb768771318621a9383 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Jun 2012 17:06:17 +0530 Subject: [PATCH] Handle pullquotes in The Economist --- recipes/economist.recipe | 17 ++++++++++++++++- recipes/economist_free.recipe | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index cc6bf4e42a..fc3a7522e1 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -20,7 +20,22 @@ class Economist(BasicNewsRecipe): INDEX = 'http://www.economist.com/printedition' description = ('Global news and current affairs from a European' ' perspective. Best downloaded on Friday mornings (GMT)') - extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }' + extra_css = ''' + .headline {font-size: x-large;} + h2 { font-size: small; } + h1 { font-size: medium; } + .pullquote { + float: right; + font-size: larger; + font-weight: bold; + font-style: italic; + border-bottom: 3px solid black; + border-top: 3px solid black; + width: 228px; + margin: 0px 0px 10px 15px; + padding: 7px 0px 9px; + } + ''' oldest_article = 7.0 remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 30bb2c4faa..0901112c82 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -20,7 +20,23 @@ class Economist(BasicNewsRecipe): INDEX = 'http://www.economist.com/printedition' description = ('Global news and current affairs from a European' ' perspective. Best downloaded on Friday mornings (GMT)') - extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }' + extra_css = ''' + .headline {font-size: x-large;} + h2 { font-size: small; } + h1 { font-size: medium; } + .pullquote { + float: right; + font-size: larger; + font-weight: bold; + font-style: italic; + border-bottom: 3px solid black; + border-top: 3px solid black; + width: 228px; + margin: 0px 0px 10px 15px; + padding: 7px 0px 9px; + } + ''' + oldest_article = 7.0 remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']),