From f192171922e9ed8e6243f5d44eda53da7221bdfb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Jun 2022 15:13:34 +0530 Subject: [PATCH] Economist apparently uses for multi word phrases as well Le bubbling sigh --- recipes/economist.recipe | 2 +- recipes/economist_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 6b3c1084b2..bc5fa0d8df 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -222,7 +222,7 @@ class Economist(BasicNewsRecipe): x.getparent().remove(x) # the economist uses for small caps with a custom font for x in root.xpath('//small'): - if x.text and len(x.text.split()) == 1 and len(x) == 0: + if x.text and len(x) == 0: x.text = x.text.upper() x.tag = 'span' x.set('style', 'font-variant: small-caps') diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 6b3c1084b2..bc5fa0d8df 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -222,7 +222,7 @@ class Economist(BasicNewsRecipe): x.getparent().remove(x) # the economist uses for small caps with a custom font for x in root.xpath('//small'): - if x.text and len(x.text.split()) == 1 and len(x) == 0: + if x.text and len(x) == 0: x.text = x.text.upper() x.tag = 'span' x.set('style', 'font-variant: small-caps')