diff options
author | cedricbonhomme <devnull@localhost> | 2010-10-25 15:02:37 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-10-25 15:02:37 +0200 |
commit | 2da1d2f12ba3f0715231e5c5309768e97edefc7d (patch) | |
tree | 17389046c4b4ec7497b36668f1d2635143efb82c | |
parent | Normalized file name. (diff) | |
download | newspipe-2da1d2f12ba3f0715231e5c5309768e97edefc7d.tar.gz newspipe-2da1d2f12ba3f0715231e5c5309768e97edefc7d.tar.bz2 newspipe-2da1d2f12ba3f0715231e5c5309768e97edefc7d.zip |
Minor bugfix.
-rwxr-xr-x | pyAggr3g470r.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 2f3ed2a0..fd71fc30 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -1045,11 +1045,11 @@ class Root: for article in self.articles[rss_feed_id]: try: name = article[1].strip().replace(' ', '_') - name = os.path.normpath(folder + "/" + name + ".html") f = open(name, "w") # Export all articles in HTML format if export_method == "export_HTML": + name = os.path.normpath(folder + "/" + name + ".html") 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 />""" % \ @@ -1059,6 +1059,7 @@ class Root: content += htmlfooter # Export all articles in raw text elif export_method == "export_TXT": + name = os.path.normpath(folder + "/" + name + ".txt") content = "Title: " + article[2].encode('utf-8') + "\n\n\n" content += utils.clear_string(article[4].encode('utf-8')) |