Several XHTML fixes

This commit is contained in:
Stefan Ritter 2009-03-09 18:20:48 +01:00
parent 126ed7eded
commit 44b517e5b4

View File

@ -187,7 +187,7 @@ else: # Show regular entry
comments_file = glob.glob(entries_dir + title + '.comments') comments_file = glob.glob(entries_dir + title + '.comments')
if post_display: if post_display:
if comments_file: if comments_file:
print ' <br /><hr>' print ' <br /><hr />'
comments_file = glob.glob(entries_dir + title + '.comments') comments_file = glob.glob(entries_dir + title + '.comments')
comments_content = open(comments_file[0], "r") comments_content = open(comments_file[0], "r")
for line in comments_content: for line in comments_content:
@ -203,11 +203,11 @@ else: # Show regular entry
# Form for adding comments # Form for adding comments
print ' <br /><br /><br />' print ' <br /><br /><br />'
print ' <form method="post">' print ' <form action="" method="post">'
print ' <input type="hidden" name="ctitle" value="' + title + '">' print ' <input type="hidden" name="ctitle" value="' + title + '" />'
print ' <label for="cname">name:</label><input type="text" id="cname" name="cname">' print ' <label for="cname">name:</label><input type="text" id="cname" name="cname" />'
print ' <br /><label for="ctext">text:</label><textarea rows="5" id="ctext" name="ctext"></textarea>' print ' <br /><label for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>'
print ' <br /><input type="submit" id="submit" value="post comment">' print ' <br /><input type="submit" id="submit" value="post comment" />'
print ' </form>' print ' </form>'
if comments == "True": if comments == "True":