summary refs log tree commit
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-07-09 01:03:53 +0900
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-07-09 15:29:44 +1200
commit28d25c2eef9c8e4bdbe8ec3303c8bc086138981c (patch)
tree9207eb6a0883aa4b6058503003106cf3b82a5dc6
parent9e1882c4920bdafb599948f57a1d9dc65c24083d (diff)
downloadrack-28d25c2eef9c8e4bdbe8ec3303c8bc086138981c.tar.gz
Use "white-space: pre-wrap" instead of "pre"
... to allow automatic line wrapping for very long lines.
-rw-r--r--lib/rack/show_exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/show_exceptions.rb b/lib/rack/show_exceptions.rb
index 6af1ec1f..a89b1042 100644
--- a/lib/rack/show_exceptions.rb
+++ b/lib/rack/show_exceptions.rb
@@ -163,7 +163,7 @@ module Rack
           div.commands { margin-left: 40px; }
           div.commands a { color:black; text-decoration:none; }
           #summary { background: #ffc; }
-          #summary h2 { font-family: monospace; font-weight: normal; color: #666; white-space: pre; }
+          #summary h2 { font-family: monospace; font-weight: normal; color: #666; white-space: pre-wrap; }
           #summary ul#quicklinks { list-style-type: none; margin-bottom: 2em; }
           #summary ul#quicklinks li { float: left; padding: 0 1em; }
           #summary ul#quicklinks>li+li { border-left: 1px #666 solid; }