From d661cc5e3ab2d8dc427760bb4193603f48512ad8 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 22 Aug 2011 00:12:51 +0000 Subject: [PATCH] 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 --- django/views/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/debug.py b/django/views/debug.py index 4cbe101b0f8..69cea898125 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; }