stats.sort()
for i in stats:
lines = open(i).readlines()
- def stripComment(l):
+ def fixupLine(l):
comment = l.find("#")
if comment >= 0:
l = l[:comment-1]
+ if l.find("cmdline=") == 0:
+ print l
+ l = "<abbr title=%s>cmdline=...</abbr>" % str(l[8:])
+ print l
return l
- lines = [stripComment(l) for l in lines if l.find("cmdline=") != 0]
+ lines = [fixupLine(l) for l in lines]
print >>html, "<td><h4>%s</h4>%s</td>" % (i, "<br />".join(lines))
print >>html, "</tr></table>"
os.chdir(cwd)