support/ruby/collins-shell/lib/collins_shell/util/log_printer.rb
def format_column value, width, alignment
      value_s = value.to_s.strip
      if value_s.size > width then
        alignment = :left # force to left is we wrap
        value_s = wrap_text(value_s, width).strip
      end
      case alignment
      when :left
        value_s.ljust(width)
      when :right
        value_s.rjust(width)
      else
        value_s.center(width)
      end
    end
# We force column values to pad so terminal-table doesn't try and be smart
We force column values to pad so terminal-table doesn't try and be smart
We force column values to pad so terminal - table doesn ' t try and be smart
def format_column value, width, alignment
      value_s = value.to_s.strip
      if value_s.size > width then
        alignment = :left 
        value_s = wrap_text(value_s, width).strip
      end
      case alignment
      when :left
        value_s.ljust(width)
      when :right
        value_s.rjust(width)
      else
        value_s.center(width)
      end
    end
def format_column value , width , alignment value_s = value . to_s . strip if value_s . size > width then alignment = :left value_s = wrap_text ( value_s , width ) . strip end case alignment when :left value_s . ljust ( width ) when :right value_s . rjust ( width ) else value_s . center ( width ) end end
We force column values to pad so terminal-table doesn't try and be smart
We force column values to pad so terminal - table doesn ' t try and be smart
# force to left is we wrap
value
width
alignment