diff options
| author | glic3rinu | 2013-03-27 22:58:11 +0100 | 
|---|---|---|
| committer | glic3rinu | 2013-03-27 22:58:11 +0100 | 
| commit | 2c0363ddaec22ac54385f7e0c2e1401ed3ff0879 (patch) | |
| tree | 74e11a1a68bcef5e5c4f5912b8278fcfeac17e0a /rest_framework | |
| parent | 5f48b4a77e0a767694a32310a6368cd32b9a924c (diff) | |
| download | django-rest-framework-2c0363ddaec22ac54385f7e0c2e1401ed3ff0879.tar.bz2 | |
Added quotes to TRAILING_PUNCTUATION used by urlize_quoted_links
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/templatetags/rest_framework.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/templatetags/rest_framework.py b/rest_framework/templatetags/rest_framework.py index 50e485db..78a3a9a1 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -180,7 +180,7 @@ def add_class(value, css_class):  # Bunch of stuff cloned from urlize -TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)'] +TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"]  WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'),                          ('"', '"'), ("'", "'")]  word_split_re = re.compile(r'(\s+)')  | 
