From: "Bill Kelly" <billk / cts.com>
> From: "Sebastian Hungerecker" <sepp2k / googlemail.com>
>
>> Or if you want to avoid breaking in the middle of words:
>> text.gsub(/(.{1,80})\s+/, "\\1\n")
>> (you'll have lines above 80 chars if there's a single word with
>> more than 80 characters).
> 
> Indeed, I recall this from a previous ruby-talk thread...

Oops - My apologies -- I found the post:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/287353


... and the solution therein appears to have the same single-word
breaking restrictions as Sebastion mentioned above.


Regards,

Bill