No <br /> at the end of list items

This commit is contained in:
Stefan Ritter 2009-09-27 17:19:22 +02:00
parent ac19e12ada
commit 0df5bfac09

View File

@ -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>'