improve image captions further

This commit is contained in:
Tomasz Długosz 2014-02-19 23:29:18 +01:00
parent c54d832d06
commit f468a0c4fd

View File

@ -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 = [