Fixed #931 -- Fixed unordered_list template filter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1bd85787ec
commit
3cf5d034db
|
@ -282,7 +282,7 @@ def unordered_list(value):
|
||||||
indent = '\t' * tabs
|
indent = '\t' * tabs
|
||||||
if value[1]:
|
if value[1]:
|
||||||
return '%s<li>%s\n%s<ul>\n%s\n%s</ul>\n%s</li>' % (indent, value[0], indent,
|
return '%s<li>%s\n%s<ul>\n%s\n%s</ul>\n%s</li>' % (indent, value[0], indent,
|
||||||
'\n'.join([unordered_list(v, tabs+1) for v in value[1]]), indent, indent)
|
'\n'.join([_helper(v, tabs+1) for v in value[1]]), indent, indent)
|
||||||
else:
|
else:
|
||||||
return '%s<li>%s</li>' % (indent, value[0])
|
return '%s<li>%s</li>' % (indent, value[0])
|
||||||
return _helper(value, 1)
|
return _helper(value, 1)
|
||||||
|
|
Loading…
Reference in New Issue