diff --git a/app/views/user_mailer/error_report.html.haml b/app/views/user_mailer/error_report.html.haml
index df66497..583957b 100644
--- a/app/views/user_mailer/error_report.html.haml
+++ b/app/views/user_mailer/error_report.html.haml
@@ -2,7 +2,7 @@
%h2 Error details
%code.signature{class: "#{@report.source}-signature"}=@report.signature
-%code.backtrace{class: "#{@report.source}-backtrace"}=@report.backtrace.gsub(/\n\s+/, '
nbsp;').html_safe
+%code.backtrace{class: "#{@report.source}-backtrace"}=@report.backtrace.gsub(/\n+\s+/, '
').html_safe
%h2 Request details
.request-details