mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Economist apparently uses <small> for multi word phrases as well
Le bubbling sigh
This commit is contained in:
parent
303380ba37
commit
f192171922
@ -222,7 +222,7 @@ class Economist(BasicNewsRecipe):
|
||||
x.getparent().remove(x)
|
||||
# the economist uses <small> 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')
|
||||
|
@ -222,7 +222,7 @@ class Economist(BasicNewsRecipe):
|
||||
x.getparent().remove(x)
|
||||
# the economist uses <small> 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user