From b4da88b1268668c11dd999a7a0915193c204bf04 Mon Sep 17 00:00:00 2001 From: andy matthews Date: Mon, 2 Mar 2015 13:25:23 -0600 Subject: [PATCH] Fixed #24440 -- Added padding to debug view stacktrace lines. --- django/views/debug.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/views/debug.py b/django/views/debug.py index 1a5911fe20..6564291bc7 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -621,9 +621,9 @@ TECHNICAL_500_TEMPLATE = (""" ul.traceback li.user { background-color:#e0e0e0; color:#000 } div.context { padding:10px 0; overflow:hidden; } div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } - div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; } + div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; } div.context ol li pre { display:inline; } - div.context ol.context-line li { color:#505050; background-color:#dfdfdf; } + div.context ol.context-line li { color:#505050; background-color:#dfdfdf; padding: 3px 2px; } div.context ol.context-line li span { position:absolute; right:32px; } .user div.context ol.context-line li { background-color:#bbb; color:#000; } .user div.context ol li { color:#666; }