diff options
author | Stefan Ritter <gideonstar@thehappy.de> | 2009-09-27 17:19:22 +0200 |
---|---|---|
committer | Stefan Ritter <gideonstar@thehappy.de> | 2009-09-27 17:19:22 +0200 |
commit | 0df5bfac09a3fce00db6b621f5e2a2f597789700 (patch) | |
tree | 9424537de8f2f62651569efb94ad81390c05f51e | |
parent | ac19e12ada9fad33c321b04e45e4832ad4da95c9 (diff) |
No <br /> at the end of list items
-rwxr-xr-x | blogthon.cgi | 5 |
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>' |