projects
/
monky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
last commit i forgot to save changes in x11.c ; this fixes that file
[monky]
/
changelog2html.py
diff --git
a/changelog2html.py
b/changelog2html.py
old mode 100644
(file)
new mode 100755
(executable)
index
31df336
..
5a6632c
--- a/
changelog2html.py
+++ b/
changelog2html.py
@@
-10,6
+10,8
@@
f = sys.argv[1]
blah = 0
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
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 ' ' + i.strip()
else:
s = i.split('*', 1)[1].strip()
- print ' <LI>' + s.replace('<', '<').replace('>', '>')
+ print ' <li>' + s.replace('<', '<').replace('>', '>')
else:
if blah:
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:
blah = 1
if blah:
- print '</UL>'
+ print '</ul>'
+
+print '</html></body>'