diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-05 20:24:22 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-11-07 09:22:14 -0200 |
commit | 9886b88a3b6455bf9d567c091e36514d04a7faba (patch) | |
tree | 2db673080dd3bedbd4ff3a908f46c08f4e87e4f5 /guides/rails_guides/markdown | |
parent | 8c35f929cf362119ece8bab1afe26a36228fe21d (diff) | |
download | rails-9886b88a3b6455bf9d567c091e36514d04a7faba.tar.gz rails-9886b88a3b6455bf9d567c091e36514d04a7faba.tar.bz2 rails-9886b88a3b6455bf9d567c091e36514d04a7faba.zip |
Do not strip code blocks, otherwise we may get misaligned output
[ci skip]
Diffstat (limited to 'guides/rails_guides/markdown')
-rw-r--r-- | guides/rails_guides/markdown/renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/markdown/renderer.rb b/guides/rails_guides/markdown/renderer.rb index 2f36af1fb3..c3fe5b8799 100644 --- a/guides/rails_guides/markdown/renderer.rb +++ b/guides/rails_guides/markdown/renderer.rb @@ -9,7 +9,7 @@ module RailsGuides <<-HTML <div class="code_container"> <pre class="brush: #{brush_for(language)}; gutter: false; toolbar: false"> -#{ERB::Util.h(code).strip} +#{ERB::Util.h(code)} </pre> </div> HTML |