diff options
| author | glic3rinu | 2013-04-04 14:01:47 +0200 | 
|---|---|---|
| committer | glic3rinu | 2013-04-04 14:01:47 +0200 | 
| commit | b6c7730d7f31e84b5f120071ddf9c7ab08e4e7da (patch) | |
| tree | 474fd0794b82550fb0b38724a67e1d1c2470e1bb /rest_framework | |
| parent | 92b5db593953f03a17ca0fcee2b9ea91a29cb143 (diff) | |
| download | django-rest-framework-b6c7730d7f31e84b5f120071ddf9c7ab08e4e7da.tar.bz2 | |
Fixed comma detection in break_long_headers templatetag
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 189e82f6..c86b6456 100644 --- a/rest_framework/templatetags/rest_framework.py +++ b/rest_framework/templatetags/rest_framework.py @@ -268,6 +268,6 @@ def break_long_headers(header):      Breaks headers longer than 160 characters (~page length)      when possible (are comma separated)      """ -    if len(header) > 160: +    if len(header) > 160 and ',' in header:          header = mark_safe('<br> ' + ', <br>'.join(header.split(',')))      return header  | 
