Fixed listitems in staticpages too

This commit is contained in:
Stefan Ritter 2009-09-30 10:18:07 +02:00
parent 0df5bfac09
commit 4e7b90d677

View File

@ -392,7 +392,10 @@ else:
print ' <div class="entry_content">' print ' <div class="entry_content">'
print ' <p>' print ' <p>'
for line in 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 ' </p>' print ' </p>'
print ' </div>' print ' </div>'
print ' <div class="entry_footer"></div>' print ' <div class="entry_footer"></div>'