- [bug] Added "white-space:pre" style to html_error_template()
  for code blocks so that indentation is preserved
  [ticket:173]
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 @@
         .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: