From a9868e3aa6782e147c76dccfbff50dfa77d794ae Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 18 Jan 2013 11:09:55 +0100 Subject: Typo: removed duplicate ending tag. --- source/export.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/export.py b/source/export.py index 77d2d24f..3d0cf248 100644 --- a/source/export.py +++ b/source/export.py @@ -36,7 +36,6 @@ __license__ = "GPLv3" # import os -import hashlib import conf import utils @@ -71,11 +70,11 @@ def export_html(mongo_db): # directories already exists (not a problem) pass - index += """
  • %s
  • \n""" % \ + index += """
  • %s
  • \n""" % \ (feed["feed_id"], feed["feed_title"]) posts = htmlheader - posts += """

    Articles of the feed %s.

    \n""" % (feed["feed_title"],) + posts += """

    Articles of the feed %s

    \n""" % (feed["feed_title"],) for article in mongo_db.get_articles(feed_id=feed["feed_id"]): post_file_name = os.path.normpath(feed_folder + "/" + article["article_id"] + ".html") @@ -177,7 +176,7 @@ def export_pdf(feeds): for article in list(feed.articles.values()): name = article.article_date.strip().replace(' ', '_') name = os.path.normpath(folder + "/" + name + ".pdf") - + content = htmlheader content += '\n
    \n' content += """

    %s


    """ % \ @@ -189,4 +188,4 @@ def export_pdf(feeds): try: pdf = pisa.CreatePDF(StringIO.StringIO(content), file(name, "wb")) except: - pass + pass \ No newline at end of file -- cgit