diff options
author | JudeArasu <judearasu@gmail.com> | 2011-07-19 06:41:20 +0530 |
---|---|---|
committer | JudeArasu <judearasu@gmail.com> | 2011-07-19 06:41:20 +0530 |
commit | 3e6052a430912b096056ae3d9a685b04767a4d19 (patch) | |
tree | 5e446fd28c585a3e39ab2b2b70decc0ec1263b76 /railties/guides/rails_guides/textile_extensions.rb | |
parent | 2f69469479e4fe51748e714fadcfdf30d111d5e5 (diff) | |
download | rails-3e6052a430912b096056ae3d9a685b04767a4d19.tar.gz rails-3e6052a430912b096056ae3d9a685b04767a4d19.tar.bz2 rails-3e6052a430912b096056ae3d9a685b04767a4d19.zip |
notextile tag has been placed with ascii quotes
Diffstat (limited to 'railties/guides/rails_guides/textile_extensions.rb')
-rw-r--r-- | railties/guides/rails_guides/textile_extensions.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/guides/rails_guides/textile_extensions.rb b/railties/guides/rails_guides/textile_extensions.rb index 352c5e91dd..dd51e0d66b 100644 --- a/railties/guides/rails_guides/textile_extensions.rb +++ b/railties/guides/rails_guides/textile_extensions.rb @@ -25,7 +25,7 @@ module RailsGuides def plusplus(body) body.gsub!(/\+(.*?)\+/) do |m| - "<notextile><tt>#{$1}</tt></notextile>" + "<notextile><tt>#{$1}</tt></notextile>" end # The real plus sign @@ -36,8 +36,9 @@ module RailsGuides body.gsub!(%r{<(yaml|shell|ruby|erb|html|sql|plain)>(.*?)</\1>}m) do |m| es = ERB::Util.h($2) css_class = $1.in?(['erb', 'shell']) ? 'html' : $1 - %{<notextile><div class="code_container"><code class="#{css_class}">#{es}</code></div></notextile>} + %{<notextile><div class="code_container"><code class="#{css_class}">#{es}</code></div></notextile>} end end end end + |