Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensures that no browser shows a vertical scrollbar in the code blocks…

… of guides, thanks to Marcelino Llano for a hint to fix this
  • Loading branch information...
commit e9d593bc18463f7c17f8abd10373adf071990de6 1 parent ec23bc1
@fxn fxn authored
View
2  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;
View
2  railties/guides/rails_guides/generator.rb
@@ -224,7 +224,7 @@ def with_workaround_for_notextile(body)
<notextile>
<div class="code_container">
<pre class="brush: #{brush}; gutter: false; toolbar: false">
-#{ERB::Util.h($2).chomp}
+#{ERB::Util.h($2).strip}
</pre>
</div>
</notextile>
Please sign in to comment.
Something went wrong with that request. Please try again.