Term.jl icon indicating copy to clipboard operation
Term.jl copied to clipboard

top border of Table box is not drawn when `show_header=false`

Open GregPlowman opened this issue 1 year ago • 0 comments

I'm not sure if this is a bug or intended.

I want to display a table with a boxed border but no header. Table(data; box=:ROUNDED, show_header=false) omits the top border line.

Is there any way to draw the top border of the box?

julia> t = reshape(1:12, 3, 4)
3×4 reshape(::UnitRange{Int64}, 3, 4) with eltype Int64:
 1  4  7  10
 2  5  8  11
 3  6  9  12

julia> Table(data; box=:ROUNDED)
╭───────────┬───────────┬───────────┬───────────╮
│  Column1  │  Column2  │  Column3  │  Column4  │
├───────────┼───────────┼───────────┼───────────┤
│     1     │     4     │     7     │    10     │
├───────────┼───────────┼───────────┼───────────┤
│     2     │     5     │     8     │    11     │
├───────────┼───────────┼───────────┼───────────┤
│     3     │     6     │     9     │    12     │
╰───────────┴───────────┴───────────┴───────────╯


julia> Table(data; box=:ROUNDED, show_header=false)
│  1  │  4  │  7  │  10  │
├─────┼─────┼─────┼──────┤
│  2  │  5  │  8  │  11  │
├─────┼─────┼─────┼──────┤
│  3  │  6  │  9  │  12  │
╰─────┴─────┴─────┴──────╯

GregPlowman avatar Feb 23 '24 05:02 GregPlowman