summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-16 13:23:46 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-16 13:23:46 -0500
commitaeb822d9b4ec8e5b88901d0ff4fef9a062f743f6 (patch)
treeca66888a579b27d6a3c07d7b4166c4b6e83caf26
parent96998dd9fbf060cb873176440b75c51238e1c4ba (diff)
downloadmako-aeb822d9b4ec8e5b88901d0ff4fef9a062f743f6.tar.gz
- [bug] Added "white-space:pre" style to html_error_template()
for code blocks so that indentation is preserved [ticket:173]
-rw-r--r--CHANGES4
-rw-r--r--mako/exceptions.py2
2 files changed, 6 insertions, 0 deletions
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: