aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-07-25 17:37:01 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-07-25 17:37:01 +0530
commit60c505dc796dddccf83c0e8d7938c1360df42d9b (patch)
tree8059bccc8ffda1bbfea8935435ffb1c05d2ce2f0 /railties/guides
parentf330e6af34dfbbe18834009422ba003d23eb96eb (diff)
downloadrails-60c505dc796dddccf83c0e8d7938c1360df42d9b.tar.gz
rails-60c505dc796dddccf83c0e8d7938c1360df42d9b.tar.bz2
rails-60c505dc796dddccf83c0e8d7938c1360df42d9b.zip
Revert "Update the TIP formatter to handle multiline tips"
This reverts commit e3dbe66e196069fde7d3ff118bd25a03184915fa. Reason: Code changes are not allowed in docrails.
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/rails_guides/textile_extensions.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/guides/rails_guides/textile_extensions.rb b/railties/guides/rails_guides/textile_extensions.rb
index 0887ebf76b..352c5e91dd 100644
--- a/railties/guides/rails_guides/textile_extensions.rb
+++ b/railties/guides/rails_guides/textile_extensions.rb
@@ -15,11 +15,10 @@ module RailsGuides
end
def tip(body)
- body.gsub!(/^TIP[.:](.*?)(\n\Z|\n\n+|\Z)/m) do |m|
+ body.gsub!(/^TIP[.:](.*)$/) do |m|
result = "<div class='info'><p>"
result << $1.strip
result << '</p></div>'
- result << $2 if $2
result
end
end