mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 20:45:58 +01:00
improve image captions further
This commit is contained in:
parent
c54d832d06
commit
f468a0c4fd
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def postprocess_html(self, soup, first_fetch):
|
|||
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…
Reference in a new issue