Quote:
Originally Posted by nook.life
No there are no table tags since you already took it out with the code, but for some reason it is still doing some sort of formatting where it draws a frame and places the image inside it. When I open the html in mozialla you can see the frame.... I just dont know how to get rid of that extra space on the left.
I do not experience this problem with other cartoon feeds like Dilbert or comics.com even though I pasted in the rotate code to rotate them.
|
There is a <div> tag in the original that has a style with a defined width that matches the width of the image before rotation, and a text-align attribute that centers the image in that width.
I don't have a nook, but try this: Paste this into the recipe after the rotate code (after pw.DestroyMagickWand(img)), and inside the postprocess_html code:
Code:
for divtag in soup.findAll('div'):
del(divtag['style'])
This deletes the style and should let it put the image to the left.