Thread
:
The Independent : Updated recipe for 2011 site redesign
View Single Post
12-23-2011, 03:26 PM
#
19
nickredding
onlinenewsreader.net
Posts: 328
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
If you don't like the ragged-right edge you can get justified formatting by adding the following lines to postprocess_html
Code:
for ptag in soup.findAll('p',attrs={'align':'left'}): del(ptag['align'])
nickredding
View Public Profile
Visit nickredding's homepage!
Find More Posts by nickredding
Track Posts by nickredding via RSS