blah = 0
+print '<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /></head><body>'
+
for i in open(f).read().splitlines():
# ignore empty lines
print ' ' + i.strip()
else:
s = i.split('*', 1)[1].strip()
- print ' <LI>' + s.replace('<', '<').replace('>', '>')
+ print ' <li>' + s.replace('<', '<').replace('>', '>')
else:
if blah:
- print '</UL>'
- print '<H3>%s</H3>' % i.strip()
- print '<UL>'
+ print '</ul>'
+ print '<h3>%s</h3>' % i.strip()
+ print '<ul>'
blah = 1
if blah:
- print '</UL>'
+ print '</ul>'
+
+print '</html></body>'