No <br /> at the end of list items
This commit is contained in:
parent
ac19e12ada
commit
0df5bfac09
@ -425,6 +425,9 @@ else:
|
|||||||
print ' <div class="entry_date">' + date + '</div>'
|
print ' <div class="entry_date">' + date + '</div>'
|
||||||
print ' <div class="entry_content">'
|
print ' <div class="entry_content">'
|
||||||
for line in content:
|
for line in content:
|
||||||
|
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 ' ' + line.strip() + '<br />'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ' <div class="entry_footer"></div>'
|
print ' <div class="entry_footer"></div>'
|
||||||
|
Loading…
Reference in New Issue
Block a user