View Single Post
Old 01-26-2011, 04:45 PM   #1
joeindallas
Enthusiast
joeindallas began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Help with text justification

OK, I've tried to go through all the tutorials and examples, but i can't seem to get the text in a simple recipe I've cobbled together (Dallas Morning News sports feeds) to be left justified. I've tried to use the USA Today recipe as an example, but no matter what i try - all the text in the articles is center justified. If I examine the output of the command line interface, i see:

'change_justification': 'original',
...
'extra_css': None,

even though I've specified extra CSS. Any ideas? The recipe (with the unworking extra CSS stripped out):

import re
from calibre.web.feeds.recipes import BasicNewsRecipe


class AdvancedUserRecipe1295487944(BasicNewsRecipe):
title = u'DMN Team RSS Sports Feeds'
oldest_article = 7
max_articles_per_feed = 100

remove_tags = [dict(name='div', attrs={'class':'categoryGroup'})]
remove_tags.append(dict(name = 'div', attrs = {'class': 'archivesGroup'}))

feeds = [(u'Rangers RSS', u'http://rangersblog.dallasnews.com/index.xml'), (u'Mavericks RSS', u'http://mavsblog.dallasnews.com/index.xml'), (u'Cowboys RSS', u'http://cowboysblog.dallasnews.com/index.xml')]



Thanks for any help!
joeindallas is offline   Reply With Quote