From 5105557e5de0e87dc2079b62447d206f8030e0d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Feb 2010 12:58:54 -0700 Subject: [PATCH] Fix #5011 (Economist (subscription) has incorrect image layout on Sony PRS-700) --- resources/recipes/economist.recipe | 2 ++ resources/recipes/economist_free.recipe | 2 ++ 2 files changed, 4 insertions(+) diff --git a/resources/recipes/economist.recipe b/resources/recipes/economist.recipe index d21b5bc51e..fc29ea8a65 100644 --- a/resources/recipes/economist.recipe +++ b/resources/recipes/economist.recipe @@ -119,6 +119,8 @@ class Economist(BasicNewsRecipe): ns = NavigableString(self.tag_to_string(caption)) div.insert(0, ns) div.insert(1, Tag(soup, 'br')) + del img['width'] + del img['height'] img.extract() div.insert(2, img) table.replaceWith(div) diff --git a/resources/recipes/economist_free.recipe b/resources/recipes/economist_free.recipe index 0a98c7da28..b3d5caeffc 100644 --- a/resources/recipes/economist_free.recipe +++ b/resources/recipes/economist_free.recipe @@ -123,6 +123,8 @@ class Economist(BasicNewsRecipe): div.insert(0, ns) div.insert(1, Tag(soup, 'br')) img.extract() + del img['width'] + del img['height'] div.insert(2, img) table.replaceWith(div) return soup