Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pre-formatted text wrapping change in technical debug page.

In (typically rare) cases, a very long exception line can appear that
requires horiztonal scrolling in the cut-and-paste exception layout box.
To make this fractionally more readable, we pre-wrap the text now.

Fixes #16331, based on a patch from Trinh Hai-Anh.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d661cc5e3ab2d8dc427760bb4193603f48512ad8 1 parent 4df4541
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/debug.py
View
2  django/views/debug.py
@@ -446,7 +446,7 @@ def empty_urlconf(request):
h2 span { font-size:80%; color:#666; font-weight:normal; }
h3 { margin:1em 0 .5em 0; }
h4 { margin:0 0 .5em 0; font-weight: normal; }
- code, pre { font-size: 100%; }
+ code, pre { font-size: 100%; white-space: pre-wrap; }
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
Please sign in to comment.
Something went wrong with that request. Please try again.