From e1a85406d81d6a9a00403fec8b353956d95a719e Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 3 Sep 2011 20:05:29 +0530 Subject: [PATCH] add time --- gen_html.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen_html.py b/gen_html.py index e58f4a5..62f77f9 100644 --- a/gen_html.py +++ b/gen_html.py @@ -10,10 +10,12 @@ def do(): for t in tapes: fullTxt = t.strip() titleReg = r'Title: (.*?)\n' + timeReg = r'Time: (.*?)\n' + time = findRe(fullTxt, time) outfile = "tapes/%d.html" % (counter,) title = findRe(fullTxt, titleReg) print title - indexHtml += "%s
\n" % (outfile, title,) + indexHtml += "%s
Time: %s

\n" % (outfile, title, time,) out = open(outfile, "w") out.write("
%s
" % (fullTxt,)) out.close()