aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lacan <olivier.lacan@gmail.com>2011-11-03 10:01:32 -0400
committerOlivier Lacan <olivier.lacan@gmail.com>2011-11-03 10:01:32 -0400
commita50f659e081785479b068b311862703584a589ca (patch)
tree6e08b43672b7b05f028952c865c8ef48fcfaeda3
parent567d454d99bd472ef342c047c0038504fa4f960c (diff)
downloadrails-a50f659e081785479b068b311862703584a589ca.tar.gz
rails-a50f659e081785479b068b311862703584a589ca.tar.bz2
rails-a50f659e081785479b068b311862703584a589ca.zip
CSS fix to prevent error output from being breaking out of body element.
Using the white-space: pre-wrap adds extra line breaks to prevent the text from breaking out of the element's box. In this case single line output can be extremely long, breaking out the <body> element. See for reference: http://www.quirksmode.org/css/whitespace.html Before: http://link.olivierlacan.com/BVU4 After: http://link.olivierlacan.com/BUfM
-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 6e71fd7ddc..1a308707d1 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
@@ -16,6 +16,7 @@
background-color: #eee;
padding: 10px;
font-size: 11px;
+ white-space: pre-wrap;
}
a { color: #000; }