diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2011-08-22 00:12:51 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2011-08-22 00:12:51 +0000 |
| commit | d661cc5e3ab2d8dc427760bb4193603f48512ad8 (patch) | |
| tree | 54ef5b47df4d861f3f26eab9635d6b7a3085d733 | |
| parent | 4df45418f2b27dde75364ab5803ebbc4b0cc9c0a (diff) | |
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
| -rw-r--r-- | django/views/debug.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 4cbe101b0f..69cea89812 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -446,7 +446,7 @@ TECHNICAL_500_TEMPLATE = """ 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; } |
