From 752b1f5667a36ef12b891a8f5d611baeac321007 Mon Sep 17 00:00:00 2001 From: Miroslav Shubernetskiy Date: Mon, 20 Jan 2014 01:12:34 -0500 Subject: [PATCH] New lines in browsable API in HTTP details If minifaction to the HTML is applied for browsable API, the HTTP response information would loose new lines since HTML white-space would be stripped. --- rest_framework/templates/rest_framework/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index d19d5a2be..d5f8edd03 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -117,8 +117,8 @@
{{ request.method }} {{ request.get_full_path }}
-
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %} -{% for key, val in response.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }} +
HTTP {{ response.status_code }} {{ response.status_text }}
{% autoescape off %} +{% for key, val in response.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }}
{% endfor %}
{{ content|urlize_quoted_links }}
{% endautoescape %}