diff options
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 4 |
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? |