Skip to content

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

@GregPlowman

Description

@GregPlowman

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> data = 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  │
╰─────┴─────┴─────┴──────╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions