aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorglic3rinu2013-03-27 22:58:11 +0100
committerglic3rinu2013-03-27 22:58:11 +0100
commit2c0363ddaec22ac54385f7e0c2e1401ed3ff0879 (patch)
tree74e11a1a68bcef5e5c4f5912b8278fcfeac17e0a /rest_framework
parent5f48b4a77e0a767694a32310a6368cd32b9a924c (diff)
downloaddjango-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.py2
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 = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;'),
('"', '"'), ("'", "'")]
word_split_re = re.compile(r'(\s+)')