diff options
| author | Miro Hrončok | 2014-04-09 23:35:41 +0200 |
|---|---|---|
| committer | Miro Hrončok | 2014-04-09 23:35:41 +0200 |
| commit | a23059b6f73aaff9709f611826bac892e56663dd (patch) | |
| tree | 127b1426a432f548d8b5df0db7f58c8f44a3460e | |
| parent | b0ba8d61ecf3c74470fa6ac019caff1fd4ca1be6 (diff) | |
| download | django-rest-framework-a23059b6f73aaff9709f611826bac892e56663dd.tar.bz2 | |
Add more TRAILING_PUNCTUATION to work with YAML.
Fixes #1517
| -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 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 = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ("'", "'")] word_split_re = re.compile(r'(\s+)') |
