tty-table icon indicating copy to clipboard operation
tty-table copied to clipboard

Rotated table missing line separator

Open epinault opened this issue 8 years ago • 2 comments
trafficstars

When resize is set to false and the table rotate, how do I get a line between each row ?

I am trying this

        table.render do |renderer|
          renderer.border.separator = :each_row
        end

        puts table.render(:unicode)

but not working :(

epinault avatar Feb 17 '17 17:02 epinault

Doc might be incorrect

this works

  table.render do |renderer|
      renderer.border :separator => :each_row
    end

Although for vertical, I would expect it to be for set of line for each record rather than each row

epinault avatar Feb 17 '17 18:02 epinault

Thanks for using the library. This looks like a bug to me. There are already open issues related to separating records, it may be worth reviewing them. I'm currently too busy to get this sorted. I'm planning to work on tty-table in near future. I'm always happy to review any PRs and merge.

piotrmurach avatar Feb 17 '17 18:02 piotrmurach