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:
Adrian Holovaty 2005-11-27 19:38:07 +00:00
parent 1bd85787ec
commit 3cf5d034db
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ def unordered_list(value):
indent = '\t' * tabs
if value[1]:
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:
return '%s<li>%s</li>' % (indent, value[0])
return _helper(value, 1)