Skip to content

Commit

Permalink
fix whitespace stripping on development error responses
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Sep 7, 2008
1 parent 1884c04 commit f1b730c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ def load_default_configuration!
end

not_found do
%Q(
(<<-HTML).sub(/^ {10}/, '')
<style>
body { text-align:center;color:#888;font-family:arial;font-size:22px;margin:20px; }
#content { margin:0 auto;width:500px;text-align:left}
Expand All @@ -1279,12 +1279,12 @@ def load_default_configuration!
</div>
</body>
</html>
)
HTML
end

error do
@error = request.env['sinatra.error']
(<<-HTML).sub(/ {12}/, '')
(<<-HTML).sub(/^ {10}/, '')
<html>
<body>
<style type="text/css" media="screen">
Expand Down

0 comments on commit f1b730c

Please sign in to comment.