class Thor::Shell::TablePrinter

def format_cell(column, row_size, index)

def format_cell(column, row_size, index)
  maxima = @maximas[index]
  f = if column.is_a?(Numeric)
    if options[:borders]
      # With borders we handle padding separately
      "%#{maxima}s"
    elsif index == row_size - 1
      # Don't output 2 trailing spaces when printing the last column
      "%#{maxima}s"
    else
      "%#{maxima}s  "
    end
  else
    @formats[index]
  end
  cell = "".dup
  cell << "|" + " " * @padding if options[:borders]
  cell << f % column.to_s
  cell << " " * @padding if options[:borders]
  cell
end