X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=changelog2html.py;h=5a6632caa66ac6eaa02cb3319aac3329e1cb97bc;hb=fd334774172ae43c8e55aba76ce06b3d61407517;hp=31df33610ed53f4e6251e330411b6d43d7dd50db;hpb=4d1d328de962cbec31565d54ce61819c9223c722;p=monky diff --git a/changelog2html.py b/changelog2html.py old mode 100644 new mode 100755 index 31df336..5a6632c --- a/changelog2html.py +++ b/changelog2html.py @@ -10,6 +10,8 @@ f = sys.argv[1] blah = 0 +print '' + for i in open(f).read().splitlines(): # ignore empty lines @@ -18,13 +20,15 @@ for i in open(f).read().splitlines(): print ' ' + i.strip() else: s = i.split('*', 1)[1].strip() - print '
  • ' + s.replace('<', '<').replace('>', '>') + print '
  • ' + s.replace('<', '<').replace('>', '>') else: if blah: - print '' - print '

    %s

    ' % i.strip() - print '' + print '

    %s

    ' % i.strip() + print '' + print '' + +print ''