1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Fixed #19070 -- urlize filter no longer raises exceptions on 2.7

Thanks to claudep for the patch.
This commit is contained in:
Andrew Godwin
2012-10-31 10:58:14 +00:00
parent 146ed13a11
commit 7f75460fd6
2 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ from django.utils.text import normalize_newlines
# Configuration for urlize() function.
TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('&lt;', '&gt;')]
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;')]
# List of possible strings used for bullets in bulleted lists.
DOTS = ['&middot;', '*', '\u2022', '&#149;', '&bull;', '&#8226;']