make_li dont li if blank
This commit is contained in:
parent
2c0d236b1c
commit
42d395aa7e
|
@ -6,6 +6,7 @@ def make_li(value):
|
|||
lines = value.split("\n")
|
||||
ret = ''
|
||||
for l in lines:
|
||||
if l.strip() != '':
|
||||
ret += "<li>%s</li>" % l
|
||||
return mark_safe(ret)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user