View Single Post
Old 07-01-2010, 12:29 PM   #2216
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by nook.life View Post
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.
Starson17 is offline