diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-19 14:47:17 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-19 14:47:17 +0100 |
commit | 16de18bc59510dfdc2bc8308e9c9dee531715e37 (patch) | |
tree | 07a6e9c906a4c31ffaf10b204c7bacffb9993408 /source/export.py | |
parent | Minor fixes to the HTML source code of the webzine. (diff) | |
download | newspipe-16de18bc59510dfdc2bc8308e9c9dee531715e37.tar.gz newspipe-16de18bc59510dfdc2bc8308e9c9dee531715e37.tar.bz2 newspipe-16de18bc59510dfdc2bc8308e9c9dee531715e37.zip |
improvements...
Diffstat (limited to 'source/export.py')
-rw-r--r-- | source/export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/export.py b/source/export.py index 4bec8089..b94187a8 100644 --- a/source/export.py +++ b/source/export.py @@ -80,7 +80,7 @@ def export_html(mongo_db): nb_articles = format(mongo_db.nb_articles(), ",d") feeds = mongo_db.get_all_feeds() index = HTML_HEADER - index += "\n<h1>List of feeds</h1>\n" + index += "<h1>List of feeds</h1>\n" index += """<p>%s articles.</p>\n<ul>\n""" % (nb_articles,) for feed in feeds: # creates a folder for each stream @@ -109,7 +109,7 @@ def export_html(mongo_db): (article["article_id"], article["article_title"][:150]) + "<br />\n" a_post = HTML_HEADER - a_post += '\n<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">\n' + a_post += '<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">\n' a_post += """<h1><a href="%s">%s</a></h1>\n<br />""" % \ (article["article_link"], article["article_title"]) a_post += article["article_content"] |