Project

General

Profile

Actions

Bug #4384

closed

RFE - let me specify column widths for table output

Added by Adam Price about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Using the TablePrinter output_adapter, column widths seem to be hard-coded to 40 characters before being concatenated with ellipsis.

I would like to specify a maximum column width for columns that I know are long strings, like repository-sets.

something like this would be awesome:

output do
  field :id, "ID" 
  field :name, "Name", :col_width => 100
end

also, let me specify that I want the maximum column width to be the same as the longest string in the column:

output do
  field :id, "ID" 
  field :name, "Name", :col_width => :longest # or some other keyword that makes sense
end
Actions #1

Updated by Tomáš Strachota about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota
  • Target version set to 1.9.1
Actions #2

Updated by Tomáš Strachota about 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #3

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:d6dabf8e364064c719802241f360bf36f28d0bd8.

Actions

Also available in: Atom PDF