aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@goliath.thehappy.de>2009-09-30 10:18:07 +0200
committerStefan Ritter <xeno@goliath.thehappy.de>2009-09-30 10:18:07 +0200
commit4e7b90d6777f948000a031833c7c3024a5319a59 (patch)
tree0839a50ce692f602a1912d7b456fdcf05accdce3
parent0df5bfac09a3fce00db6b621f5e2a2f597789700 (diff)
Fixed listitems in staticpages too
-rwxr-xr-xblogthon.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 66eb67c..8f40193 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -392,7 +392,10 @@ else:
print ' <div class="entry_content">'
print ' <p>'
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 ' </p>'
print ' </div>'
print ' <div class="entry_footer"></div>'