From 7f75460fd6befbef805fee3c91608efb0e9f444d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 31 Oct 2012 10:58:14 +0000 Subject: Fixed #19070 -- urlize filter no longer raises exceptions on 2.7 Thanks to claudep for the patch. --- django/utils/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/utils') diff --git a/django/utils/html.py b/django/utils/html.py index cc8372906b..9816b9accb 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -18,7 +18,7 @@ from django.utils.text import normalize_newlines # Configuration for urlize() function. TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)'] -WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('<', '>')] +WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>')] # List of possible strings used for bullets in bulleted lists. DOTS = ['·', '*', '\u2022', '•', '•', '•'] -- cgit v1.3