That 'off by one' error in 'show tasks' finally annoyed me enough this
afternoon to knock together a fix.

The problem is caused because there is a space separator in the 'puts'
picture string which isn't taken into account by the line split
algorithm.

Additionally I included a look in the environment for the value of
'COLUMNS', which on many Linux distributions is set to the width of the
terminal. (Make sure you export it if you want it to work!)

Line 29 in 'standard.rb'

Change

wrap_length = 80 - info[:longest]

to

wrap_length = (ENV['COLUMNS'].to_i || 80) - info[:longest] - 1


Finally my task descriptions format correctly; harmony is restored :-)

NeilW


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to