From 19610f7b3abbc6f5a8d18472104d4799a9795336 Mon Sep 17 00:00:00 2001 From: Dave Gynn Date: Tue, 31 Oct 2017 02:13:53 -0700 Subject: Prevent source line wrapping in rescue layout Long source lines cause line wrapping in the extracted source section of the rescue handler page which can make the line numbers not match up with the source lines. --- actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_dispatch/middleware/templates') diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb index e0509f56f4..39ea25bdfc 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb @@ -106,6 +106,7 @@ .line { padding-left: 10px; + white-space: pre; } .line:hover { -- cgit v1.2.3