Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2009, 04:45 PM   #1
JayCeeEll
Connoisseur
JayCeeEll doesn't litterJayCeeEll doesn't litterJayCeeEll doesn't litter
 
JayCeeEll's Avatar
 
Posts: 87
Karma: 204
Join Date: Dec 2007
Location: Exeter, Devon, UK
Device: PRS-300
Custom news source

I am working on a custom news source and I wish to change the output style of the <blockquote> tag.
I have tried extra_css = '.blockquote { padding-left: 15px; border-left: 3px solid #ccc;}' but this does not work.

Am I using the wrong keyword or tag?

This is the complete recipe
Code:
__license__   = 'GPL v3'
__copyright__ = '2009, JayCeeEll'

from calibre.web.feeds.news import BasicNewsRecipe

class RespectfulInsolence(BasicNewsRecipe):
    title                 = u'Respectful Insolence'
    language              = 'en'
    __author__            = 'JayCeeEll'
    description           = 'The miscellaneous ramblings of a surgeon/scientist on medicine, quackery, science, pseudoscience, history, and pseudohistory (and anything else'
    author                = 'Orac'
    publisher             = 'ScienceBlogs'
    category              = 'blog, science, skepticism'
    oldest_article        = 7
    max_articles_per_feed = 100
    no_stylesheets        = True
    encoding              = 'utf8'
    remove_javascript     = True
    use_embedded_content  = False

    feeds = [(u'Respectful Insolence'        , u'http://feeds.feedburner.com/scienceblogs/insolence')]

    keep_only_tags = [dict(name='div', attrs={'class':'entry'})]
    
    extra_css = '.blockquote { padding-left: 15px; border-left: 3px solid #ccc;}'
JayCeeEll is offline   Reply With Quote
Old 11-13-2009, 06:37 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,455
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
remove the dot in front of blockquote
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 11-14-2009, 05:01 AM   #3
JayCeeEll
Connoisseur
JayCeeEll doesn't litterJayCeeEll doesn't litterJayCeeEll doesn't litter
 
JayCeeEll's Avatar
 
Posts: 87
Karma: 204
Join Date: Dec 2007
Location: Exeter, Devon, UK
Device: PRS-300
Thank you, worked like a charm.
JayCeeEll is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best English News Source? Gideon Reading Recommendations 24 11-16-2010 06:14 PM
Rename output Title of (custom) news source ischeriad Calibre 4 02-16-2010 07:14 AM
Custom news source - for forums RichD Calibre 0 01-12-2010 12:05 PM
Using PubDate in print_version of custom news source mobilereader72 Calibre 4 05-30-2009 06:52 PM
libprs500 and custom news feeds scottsan Calibre 1 04-03-2008 03:49 PM


All times are GMT -4. The time now is 03:20 AM.


MobileRead.com is a privately owned, operated and funded community.