mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
improve image captions further
This commit is contained in:
parent
c54d832d06
commit
f468a0c4fd
@ -81,7 +81,7 @@ class GN(BasicNewsRecipe):
|
||||
for r in soup.findAll(attrs={'class':['di_dr', 'doc_image']}):
|
||||
del r['style']
|
||||
for r in soup.findAll(attrs={'class':'cm-i-a'}):
|
||||
r.replaceWith( r.prettify() + '<div style="clear:both"></div>')
|
||||
r.replaceWith( '<div style="clear:both"></div>' + r.prettify() + '<div style="clear:both"></div>')
|
||||
return soup
|
||||
|
||||
keep_only_tags = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user