Changeset 8920
- Timestamp:
- 02/21/08 04:44:09 (8 months ago)
- Files:
-
- tools/capistrano/CHANGELOG (modified) (1 diff)
- tools/capistrano/lib/capistrano/cli/help.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/capistrano/CHANGELOG
r8919 r8920 1 1 *SVN* 2 3 * Use a default line length in help text if line length is otherwise too small [Jamis Buck] 2 4 3 5 * Fix incorrect reference to the 'setup' task in task documentation [rajeshduggal] tools/capistrano/lib/capistrano/cli/help.rb
r6490 r8920 85 85 indentation = line[/^\s+/] || "" 86 86 indentation_size = indentation.split(//).inject(0) { |c,s| c + (s[0] == ?\t ? 8 : 1) } 87 lines = line.strip.gsub(/(.{1,#{output_columns - indentation_size}})(?:\s+|\Z)/, "\\1\n").split(/\n/) 87 line_length = output_columns - indentation_size 88 line_length = MIN_MAX_LEN if line_length < MIN_MAX_LEN 89 lines = line.strip.gsub(/(.{1,#{line_length}})(?:\s+|\Z)/, "\\1\n").split(/\n/) 88 90 if lines.empty? 89 91 formatted << "\n"