Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored August 22, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/views/debug.py
2  django/views/debug.py
@@ -446,7 +446,7 @@ def empty_urlconf(request):
446 446
     h2 span { font-size:80%; color:#666; font-weight:normal; }
447 447
     h3 { margin:1em 0 .5em 0; }
448 448
     h4 { margin:0 0 .5em 0; font-weight: normal; }
449  
-    code, pre { font-size: 100%; }
  449
+    code, pre { font-size: 100%; white-space: pre-wrap; }
450 450
     table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
451 451
     tbody td, tbody th { vertical-align:top; padding:2px 3px; }
452 452
     thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }

0 notes on commit d661cc5

Please sign in to comment.
Something went wrong with that request. Please try again.