diff options
author | rohit <rohit.arondekar@gmail.com> | 2010-06-08 12:33:55 +0530 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-08 09:11:34 +0200 |
commit | 67f411c57b98f926d39042ba003cefdba14be603 (patch) | |
tree | 81fd12fec50817ce1e81591ed39771511e6bfe78 /actionpack/lib/action_view | |
parent | a4eaa1fd39f93eff975bfd8a5cc4c7dfc3f18aa7 (diff) | |
download | rails-67f411c57b98f926d39042ba003cefdba14be603.tar.gz rails-67f411c57b98f926d39042ba003cefdba14be603.tar.bz2 rails-67f411c57b98f926d39042ba003cefdba14be603.zip |
Fixed textilize_without_paragraph and added tests for it. [#4792 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 4c76e9642f..19f55143bf 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -275,7 +275,7 @@ module ActionView # textilize_without_paragraph("Visit the Rails website "here":http://www.rubyonrails.org/.) # # => "Visit the Rails website <a href="http://www.rubyonrails.org/">here</a>." def textilize_without_paragraph(text, *options) - textiled = textilize(text, options) + textiled = textilize(text, *options) if textiled[0..2] == "<p>" then textiled = textiled[3..-1] end if textiled[-4..-1] == "</p>" then textiled = textiled[0..-5] end return textiled |