aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-03-09 16:35:57 +0100
committerStefan Ritter <xeno@thehappy.de>2009-03-09 16:35:57 +0100
commit126ed7ededc5ac42137b0381b0c32e86fda6b9a2 (patch)
tree23a8413c8d87ffaf28640d0dcd3be39a7459a75f
parentd03506dd2a8ff30e7dcc14e49c121f4dedaa352d (diff)
Emptylines in linklist are now interpreted as <br />
-rwxr-xr-xblogthon.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index f2a3d0e..930ab49 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -144,7 +144,9 @@ if linklist == "True":
print ' <small>links</small><br />'
content = open("linklist", "r")
for line in content:
- if not line.strip() is "":
+ if line.strip() is "":
+ print ' <br />'
+ else:
print ' &nbsp;<a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a>&nbsp;<br />'
content.close()
print ' </div>'