aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-05-17 17:44:40 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-05-17 17:46:12 +0530
commit612f7fe7014294d646f4b46ed3b927f68ee76fc7 (patch)
treec303e346445d28ebb3d549840a6a01c3fc542ff7 /actionpack/lib/action_view/helpers/text_helper.rb
parenta39d144e32b5e50e39867b00e9730dd6648f8216 (diff)
downloadrails-612f7fe7014294d646f4b46ed3b927f68ee76fc7.tar.gz
rails-612f7fe7014294d646f4b46ed3b927f68ee76fc7.tar.bz2
rails-612f7fe7014294d646f4b46ed3b927f68ee76fc7.zip
fix word_wrap eg output [ci skip]
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 5fdb48ac6b..2c24bbb37b 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -209,7 +209,9 @@ module ActionView
#
# You can still use <tt>word_wrap</tt> with the old API that accepts the
# +line_width+ as its optional second parameter:
- # word_wrap('Once upon a time', 8) # => Once upon\na time
+ #
+ # word_wrap('Once upon a time', 8)
+ # # => Once\nupon a\ntime
def word_wrap(text, *args)
options = args.extract_options!
unless args.blank?