From de4d1a0f800b4500c72824390251579e139b31e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Dec 2012 18:13:10 +0530 Subject: [PATCH] Titanic by Krittika Goyal --- recipes/titanic_de.recipe | 20 ++++++++++++++++++++ src/calibre/ebooks/oeb/display/paged.coffee | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 recipes/titanic_de.recipe diff --git a/recipes/titanic_de.recipe b/recipes/titanic_de.recipe new file mode 100644 index 0000000000..edc9580602 --- /dev/null +++ b/recipes/titanic_de.recipe @@ -0,0 +1,20 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class Titanic(BasicNewsRecipe): + title = u'Titanic' + language = 'de' + __author__ = 'Krittika Goyal' + oldest_article = 14 #days + max_articles_per_feed = 25 + #encoding = 'cp1252' + use_embedded_content = False + + no_stylesheets = True + auto_cleanup = True + + + feeds = [ +('News', + 'http://www.titanic-magazin.de/ich.war.bei.der.waffen.rss'), +] + diff --git a/src/calibre/ebooks/oeb/display/paged.coffee b/src/calibre/ebooks/oeb/display/paged.coffee index c5f2dbc97a..7611289c44 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -29,6 +29,8 @@ class PagedDisplay this.current_page_height = null this.document_margins = null this.use_document_margins = false + this.footer_panel = null + this.header_panel = null read_document_margins: () -> # Read page margins from the document. First checks for an @page rule.