aboutsummaryrefslogtreecommitdiff
path: root/source/export.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-18 11:09:55 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-18 11:09:55 +0100
commita9868e3aa6782e147c76dccfbff50dfa77d794ae (patch)
treec8aa57471458289e0e67268d6a61a8bc00f6e87c /source/export.py
parentUpdated webzine export: display the number of exported articles. (diff)
downloadnewspipe-a9868e3aa6782e147c76dccfbff50dfa77d794ae.tar.gz
newspipe-a9868e3aa6782e147c76dccfbff50dfa77d794ae.tar.bz2
newspipe-a9868e3aa6782e147c76dccfbff50dfa77d794ae.zip
Typo: removed duplicate ending <a> tag.
Diffstat (limited to 'source/export.py')
-rw-r--r--source/export.py9
1 files 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 += """<li><a href="%s">%s</a></a></li>\n""" % \
+ index += """<li><a href="%s">%s</a></li>\n""" % \
(feed["feed_id"], feed["feed_title"])
posts = htmlheader
- posts += """<h1>Articles of the feed %s.</h1>\n""" % (feed["feed_title"],)
+ posts += """<h1>Articles of the feed %s</h1>\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<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">\n'
content += """<h1><a href="%s">%s</a></h1><br />""" % \
@@ -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
bgstack15