Permalink
Browse files

fix word_wrap eg output [ci skip]

  • Loading branch information...
1 parent a39d144 commit 612f7fe7014294d646f4b46ed3b927f68ee76fc7 @vijaydev vijaydev committed May 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_view/helpers/text_helper.rb
@@ -209,7 +209,9 @@ def pluralize(count, singular, plural = nil)
#
# 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?

0 comments on commit 612f7fe

Please sign in to comment.