aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiro Hrončok2014-04-09 23:35:41 +0200
committerMiro Hrončok2014-04-09 23:35:41 +0200
commita23059b6f73aaff9709f611826bac892e56663dd (patch)
tree127b1426a432f548d8b5df0db7f58c8f44a3460e
parentb0ba8d61ecf3c74470fa6ac019caff1fd4ca1be6 (diff)
downloaddjango-rest-framework-a23059b6f73aaff9709f611826bac892e56663dd.tar.bz2
Add more TRAILING_PUNCTUATION to work with YAML.
Fixes #1517
-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 beb8c5b0..dff176d6 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+)')