diff options
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | mako/exceptions.py | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -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: |