mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-05-24 02:02:32 -04:00
update bs
This commit is contained in:
parent
6e0787be0d
commit
b98f6258d4
@ -159,7 +159,5 @@ class BusinessStandard(BasicNewsRecipe):
|
||||
for x in soup.findAll(attrs={attr: True}):
|
||||
del x[attr]
|
||||
for br in soup.findAll(attrs={'class': lambda x: x and x.startswith('brtag')}):
|
||||
if pa := br.find_parent('div'):
|
||||
pa.name = 'p'
|
||||
br.extract()
|
||||
br.name = 'div'
|
||||
return soup
|
||||
|
@ -172,7 +172,5 @@ class BusinessStandardPrint(BasicNewsRecipe):
|
||||
for x in soup.findAll(attrs={attr: True}):
|
||||
del x[attr]
|
||||
for br in soup.findAll(attrs={'class': lambda x: x and x.startswith('brtag')}):
|
||||
if pa := br.find_parent('div'):
|
||||
pa.name = 'p'
|
||||
br.extract()
|
||||
br.name = 'div'
|
||||
return soup
|
||||
|
Loading…
x
Reference in New Issue
Block a user