From 80beb564db86bb6e1221578667f806eba81eeb49 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 25 Oct 2010 15:07:55 +0200 Subject: Minor bugfix. --- pyAggr3g470r.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index fd71fc30..37a2803f 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(' ', '_') - f = open(name, "w") # Export all articles in HTML format if export_method == "export_HTML": name = os.path.normpath(folder + "/" + name + ".html") + f = open(name, "w") content = htmlheader() content += '\n
\n' content += """

%s


""" % \ @@ -1060,6 +1060,7 @@ class Root: # Export all articles in raw text elif export_method == "export_TXT": name = os.path.normpath(folder + "/" + name + ".txt") + f = open(name, "w") content = "Title: " + article[2].encode('utf-8') + "\n\n\n" content += utils.clear_string(article[4].encode('utf-8')) -- cgit