diff options
author | Hendy Tanata <htanata@gmail.com> | 2012-05-17 16:12:21 +0800 |
---|---|---|
committer | Hendy Tanata <htanata@gmail.com> | 2012-05-17 16:12:21 +0800 |
commit | 334c43370b3a0f179a282080e1d47f072706e1bc (patch) | |
tree | 450ab0da132a0d2ba7fc2de817bf489aeae04cfc /actionpack/lib/action_view | |
parent | 32f3c272b811b3d19518a6cb407901f0482c5cf9 (diff) | |
download | rails-334c43370b3a0f179a282080e1d47f072706e1bc.tar.gz rails-334c43370b3a0f179a282080e1d47f072706e1bc.tar.bz2 rails-334c43370b3a0f179a282080e1d47f072706e1bc.zip |
Fix code example for word_wrap helper.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 074cbb202d..5fdb48ac6b 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -199,10 +199,10 @@ module ActionView # # => Once upon a time # # word_wrap('Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding a successor to the throne turned out to be more trouble than anyone could have imagined...') - # # => Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\n a successor to the throne turned out to be more trouble than anyone could have\n imagined... + # # => Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\na successor to the throne turned out to be more trouble than anyone could have\nimagined... # # word_wrap('Once upon a time', :line_width => 8) - # # => Once upon\na time + # # => Once\nupon a\ntime # # word_wrap('Once upon a time', :line_width => 1) # # => Once\nupon\na\ntime |