From bb47b2dbd9cc46476d7f4668fe34921b8f2e9afe Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Mon, 2 Nov 2009 14:14:21 +0100 Subject: Added labels for each comment --- blogthon.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blogthon.cgi b/blogthon.cgi index 423ce25..d34e08b 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -452,6 +452,7 @@ else: print '
' notfirstline = 0 # Ugly fix for closing comment containers + label_count = 0 for line in comments_content: if re.search("^-", line): @@ -460,6 +461,11 @@ else: print '
' notfirstline = 0; print '
' + + #Label for each comment + label_count += 1 + print ' ' + print '
' + line.split(".", 1)[1].strip() + '
' elif re.search("^\+", line): print '
' + line.split(".", 1)[1].strip() + '
' -- cgit v1.2.3