Author: mtredinnick
Date: 2011-08-21 17:12:51 -0700 (Sun, 21 Aug 2011)
New Revision: 16637
Modified:
django/trunk/django/views/debug.py
Log:
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.
Modified: django/trunk/django/views/debug.py
===================================================================
--- django/trunk/django/views/debug.py 2011-08-21 18:09:08 UTC (rev 16636)
+++ django/trunk/django/views/debug.py 2011-08-22 00:12:51 UTC (rev 16637)
@@ -446,7 +446,7 @@
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; }
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.