diff --git a/blogthon.cgi b/blogthon.cgi
index 7a39863..5dd7d11 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -143,20 +143,28 @@ else: # Show regular entry
# Comments are shown when post_display and comments_file
comments_file = glob.glob(entries_dir + title + '.comments')
if comments_file and post_display:
- print '
'
+ 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] + ' wrote at '
+ print '
'
+ print ' ' + line.split(".", 1)[1].strip() + ' wrote at '
elif line.split(".", 1)[0] == "+":
- print ' ' + line.split(".", 1)[1] + ':
'
+ print ' ' + line.split(".", 1)[1].strip() + ':
'
else:
line = line.split(".", 1)[1]
- print ' ' + line.strip() + '
'
+ print ' ' + line.strip() + '
'
comments_content.close()
+ # Form for adding comments
+ print '
'
+ print ' '
+
if comments == "True":
comments_file = glob.glob(entries_dir + title + '.comments')
if not comments_file and not post_display:
diff --git a/styles/blogthon.css b/styles/blogthon.css
index 5d6349a..378385e 100644
--- a/styles/blogthon.css
+++ b/styles/blogthon.css
@@ -84,4 +84,18 @@ a.comment:link, a.comment:hover, a.comment:active, a.comment:visited {
font-size: 10px;
}
+input, textarea {
+ font-family: Verdana;
+ font-size: 10px;
+ display: block;
+ width: 300px;
+ background: #333;
+ color: #FFF;
+ border: thin dotted;
+}
+
+input#submit {
+ width: 120px;
+}
+
# vim: set tw=0 ts=4: