aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <gideonstar@thehappy.de>2009-09-27 17:19:22 +0200
committerStefan Ritter <gideonstar@thehappy.de>2009-09-27 17:19:22 +0200
commit0df5bfac09a3fce00db6b621f5e2a2f597789700 (patch)
tree9424537de8f2f62651569efb94ad81390c05f51e
parentac19e12ada9fad33c321b04e45e4832ad4da95c9 (diff)
No <br /> at the end of list items
-rwxr-xr-xblogthon.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index f2d565c..66eb67c 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -425,7 +425,10 @@ else:
print ' <div class="entry_date">' + date + '</div>'
print ' <div class="entry_content">'
for line in content:
- print ' ' + line.strip() + '<br />'
+ if re.search('<li>', line) or re.search('<ul>', line) or re.search('</ul>', line) or re.search('<ol>', line) or re.search('</ol>', line):
+ print ' ' + line.strip()
+ else:
+ print ' ' + line.strip() + '<br />'
print ' </div>'
print ' <div class="entry_footer"></div>'
print ' <div class="entry_border_left"></div>'