aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDave Gynn <davegynn@gmail.com>2017-10-31 02:13:53 -0700
committerDave Gynn <davegynn@gmail.com>2017-10-31 02:19:00 -0700
commit19610f7b3abbc6f5a8d18472104d4799a9795336 (patch)
tree2a4bd238abc05660121c4a0a19b39c406655a510 /actionpack
parenta8ebd48559bea8893aa299f9e27758da0807ef24 (diff)
downloadrails-19610f7b3abbc6f5a8d18472104d4799a9795336.tar.gz
rails-19610f7b3abbc6f5a8d18472104d4799a9795336.tar.bz2
rails-19610f7b3abbc6f5a8d18472104d4799a9795336.zip
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.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb1
1 files changed, 1 insertions, 0 deletions
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 {