From 3cf5d034dbee58ed862fa00a9b148bede61c4657 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 27 Nov 2005 19:38:07 +0000 Subject: [PATCH] Fixed #931 -- Fixed unordered_list template filter git-svn-id: http://code.djangoproject.com/svn/django/trunk@1466 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/template/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/template/defaultfilters.py b/django/core/template/defaultfilters.py index c9a5ff931b..9fa6f4526f 100644 --- a/django/core/template/defaultfilters.py +++ b/django/core/template/defaultfilters.py @@ -282,7 +282,7 @@ def unordered_list(value): indent = '\t' * tabs if value[1]: return '%s
  • %s\n%s\n%s
  • ' % (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
  • %s
  • ' % (indent, value[0]) return _helper(value, 1)