Update business_standard_print.recipe

fix paras
This commit is contained in:
unkn0wn 2025-05-12 13:29:04 +05:30 committed by GitHub
parent bd7dd5c4ed
commit 4ba6efed59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,8 +171,8 @@ class BusinessStandardPrint(BasicNewsRecipe):
for attr in self.remove_attributes:
for x in soup.findAll(attrs={attr: True}):
del x[attr]
for br in soup.findAll('small', attrs={'class': 'brtag'}):
br.clear()
brtag = soup.new_tag('br')
br.replace_with(brtag)
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()
return soup