Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

guides textile extensions: now recognizes also TIP.

  • Loading branch information...
commit 8b4db93ca3d50d88022fd2aac3a06bafca631c73 1 parent de0753d
@fxn fxn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/rails_guides/textile_extensions.rb
View
4 railties/guides/rails_guides/textile_extensions.rb
@@ -13,9 +13,9 @@ def notestuff(body)
end
def tip(body)
- body.gsub!(/^(TIP)\:(.*)$/) do |m|
+ body.gsub!(/^TIP(?:\.|\:)(.*)$/) do |m|
result = "<div class='info'><p>"
- result << $2.strip
+ result << $1.strip
result << '</p></div>'
result
end

0 comments on commit 8b4db93

Please sign in to comment.
Something went wrong with that request. Please try again.