'
- for line in content:
- print ' ' + line.strip() + '
'
- print '
' - - # Comments are shown when post_display and comments_file - comments_file = glob.glob(entries_dir + title + '.comments') - if post_display: - if comments_file: - print '
' - comments_file = glob.glob(entries_dir + title + '.comments') - comments_content = open(comments_file[0], "r") - for line in comments_content: - if line.split(".", 1)[0] == "-": - print '
' - print ' ' + line.split(".", 1)[1].strip() + ' wrote at ' - elif line.split(".", 1)[0] == "+": - print ' ' + line.split(".", 1)[1].strip() + ':
' - else: - line = line.split(".", 1)[1] - print ' ' + line.strip() + '
' - comments_content.close() + print '
'
+ for line in content:
+ print ' ' + line.strip() + '
'
+ print '
' + + # Comments are shown when post_display and comments_file comments_file = glob.glob(entries_dir + title + '.comments') - if not comments_file and not post_display: - print '
' - content.close() - entry_counter += 1 + if post_display: + if comments_file: + print '
' + comments_file = glob.glob(entries_dir + title + '.comments') + comments_content = open(comments_file[0], "r") + for line in comments_content: + if line.split(".", 1)[0] == "-": + print '
' + print ' ' + line.split(".", 1)[1].strip() + ' wrote at ' + elif line.split(".", 1)[0] == "+": + print ' ' + line.split(".", 1)[1].strip() + ':
' + else: + line = line.split(".", 1)[1] + print ' ' + line.strip() + '
' + comments_content.close() - if not month_display and not post_display and not allentries_display and entry_counter == entries_per_page: # Display pagelist - print ' ' + # Form for adding comments + print '
' + print ' ' -print '
' + content.close() + entry_counter += 1 + + if not month_display and not post_display and not allentries_display and entry_counter == entries_per_page: # Display pagelist + print ' ' + + print '
- no comments
' - print '