From cdce5fc8860982afa63bfa82f6a752972e7f7d19 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 24 Oct 2010 19:28:28 +0200 Subject: ensures that no browser shows a vertical scrollbar in the code blocks of guides, thanks to Marcelino Llano for a hint to fix this --- .../guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css | 2 ++ railties/guides/rails_guides/generator.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css b/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css index d8d998136f..6d2edb2eb8 100644 --- a/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +++ b/railties/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css @@ -4,6 +4,8 @@ .syntaxhighlighter { background-color: #eee !important; font-family: "Anonymous Pro", "Inconsolata", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace !important; + overflow-y: hidden !important; + overflow-x: auto !important; } .syntaxhighlighter .line.alt1 { background-color: #eee !important; diff --git a/railties/guides/rails_guides/generator.rb b/railties/guides/rails_guides/generator.rb index 03d23976a0..0a2170a09e 100644 --- a/railties/guides/rails_guides/generator.rb +++ b/railties/guides/rails_guides/generator.rb @@ -224,7 +224,7 @@ module RailsGuides
-#{ERB::Util.h($2).chomp}
+#{ERB::Util.h($2).strip}
 
-- cgit v1.2.3