diff options
-rwxr-xr-x | blogthon.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 423ce25..d34e08b 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -452,6 +452,7 @@ else: print ' <div class="comments">' 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 ' </div>' notfirstline = 0; print ' <div class="comment">' + + #Label for each comment + label_count += 1 + print ' <a name="' + str(label_count) + '"></a>' + print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>' elif re.search("^\+", line): print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>' |