summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-24 11:54:41 +0100
committerGitHub <noreply@github.com>2022-01-24 11:54:41 +0100
commit4ac0bf6acd6f82036a82f23705b14cce4ab28cb0 (patch)
tree6d284b6a8a00636baf52dfbca70777fbb5778a4c
parent89d137f3be1685dfc2ce0968835c73667bffb0ba (diff)
Fixed wrapping of long values in technical 500 debug page.
Follow up to d5f2d5d6041d477fc8f5fc53c20112e07ef104fc.
-rw-r--r--django/views/templates/technical_500.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/django/views/templates/technical_500.html b/django/views/templates/technical_500.html
index 6bd6e16708..7801289b78 100644
--- a/django/views/templates/technical_500.html
+++ b/django/views/templates/technical_500.html
@@ -15,7 +15,7 @@
h2 { margin-bottom:.8em; }
h3 { margin:1em 0 .5em 0; }
h4 { margin:0 0 .5em 0; font-weight: normal; }
- code, pre { font-size: 100%; white-space: pre-wrap; }
+ code, pre { font-size: 100%; white-space: pre-wrap; word-break: break-word; }
summary { cursor: pointer; }
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
@@ -27,10 +27,11 @@
table.vars { margin:5px 10px 2px 40px; width: auto; }
table.vars td, table.req td { font-family:monospace; }
table td.code { width:100%; }
- table td.code pre { overflow:hidden; word-break: break-word; }
+ table td.code pre { overflow:hidden; }
table.source th { color:#666; }
table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
ul.traceback { list-style-type:none; color: #222; }
+ ul.traceback li.cause { word-break: break-word; }
ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; }
ul.traceback li.user { background-color:#e0e0e0; color:#000 }
div.context { padding:10px 0; overflow:hidden; }
@@ -214,7 +215,7 @@
<ul class="traceback">
{% for frame in frames %}
{% ifchanged frame.exc_cause %}{% if frame.exc_cause %}
- <li><h3>
+ <li class="cause"><h3>
{% if frame.exc_cause_explicit %}
The above exception ({{ frame.exc_cause|force_escape }}) was the direct cause of the following exception:
{% else %}