summaryrefslogtreecommitdiff
path: root/news.py
diff options
context:
space:
mode:
Diffstat (limited to 'news.py')
-rwxr-xr-xnews.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news.py b/news.py
index f5bbb52..531445a 100755
--- a/news.py
+++ b/news.py
@@ -124,7 +124,7 @@ class JSONWriter(BasicWriter):
entry, author = entry.rstrip('\n').rsplit('\n', 1)
self.stream.write('"title":"%s",' % title.format(**{'title':NOPFmt()})) # FIXME: assumes the first line is always the title
self.stream.write('"date":"%s",' % date.format(**{'date':NOPFmt()})) # FIXME: assumes the second line is always the date
- self.stream.write('"author":"%s",' % author.format(**{'author':NOPFmt()})) # FIXME: assumes the second line is always the date
+ self.stream.write('"author":"%s",' % author.format(**{'author':NOPFmt()})) # FIXME: assumes the last line is always the author
self.stream.write('"html":"')
entry = entry.lstrip('\n')
entry = entry.replace('\n\n', '<br/>')