From aeb822d9b4ec8e5b88901d0ff4fef9a062f743f6 Mon Sep 17 00:00:00 2001 From: Mike Bayer <mike_mp@zzzcomputing.com> Date: Mon, 16 Jan 2012 13:23:46 -0500 Subject: [PATCH] - [bug] Added "white-space:pre" style to html_error_template() for code blocks so that indentation is preserved [ticket:173] --- CHANGES | 4 ++++ mako/exceptions.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 478e32a..a8455fd 100644 --- a/CHANGES +++ b/CHANGES @@ -40,6 +40,10 @@ - [bug] The exception message in the html_error_template is now escaped with the HTML filter. [ticket:142] +- [bug] Added "white-space:pre" style to html_error_template() + for code blocks so that indentation is preserved + [ticket:173] + 0.5 - A Template is explicitly disallowed from having a url that normalizes to relative outside diff --git a/mako/exceptions.py b/mako/exceptions.py index 522227c..bce99b7 100644 --- a/mako/exceptions.py +++ b/mako/exceptions.py @@ -260,6 +260,8 @@ def html_error_template(): .sampleline { padding:0px 10px 0px 10px; } .sourceline { margin:5px 5px 10px 5px; font-family:monospace;} .location { font-size:80%; } + .highlight { white-space:pre; } + .sampleline { white-space:pre; } </style> % endif % if full: -- GitLab