X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=XHTMLWriter.py;h=99300baac1496dfbd3980be0d7125f63992d2dad;hb=c907f1dfe8becd4106a1544366d58b027ac89d2a;hp=b9cfcba0273200f1428e4f9242d698276d7e8e40;hpb=1053c3e285585dfa0116c185525448ae1e07d0c0;p=planet-ucc.git
diff --git a/XHTMLWriter.py b/XHTMLWriter.py
index b9cfcba..99300ba 100644
--- a/XHTMLWriter.py
+++ b/XHTMLWriter.py
@@ -48,6 +48,19 @@ class XHTMLWriter:
except:
pass
output += '\n'
+ output += '
\n'
+ for date in self.planet:
+ output += '
%s
\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate))
+ for item in date.items:
+ output += self.__write_item__(item)
+ # see how many items we've written
+ itemcount += 1
+ if itemcount >= self.maxitems:
+ break
+ # again, check to see if we've written the maximum number of items
+ if itemcount >= self.maxitems:
+ break
+ output += '\n'
output += '\n'
- output += '\n'
- for date in self.planet:
- output += '
%s
\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate))
- for item in date.items:
- output += self.__write_item__(item)
- # see how many items we've written
- itemcount += 1
- if itemcount >= self.maxitems:
- break
- # again, check to see if we've written the maximum number of items
- if itemcount >= self.maxitems:
- break
- output += '\n'
output += '