Skip to content

Draw top border of Table box when show_header=false#267

Open
GregPlowman wants to merge 1 commit intoFedeClaudi:masterfrom
GregPlowman:GregPlowman-patch-1
Open

Draw top border of Table box when show_header=false#267
GregPlowman wants to merge 1 commit intoFedeClaudi:masterfrom
GregPlowman:GregPlowman-patch-1

Conversation

@GregPlowman
Copy link
Copy Markdown

Issue #242

Change so that top border of Table box is drawn when show_header=false

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

Before:

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

After:

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

@t-bltg
Copy link
Copy Markdown
Collaborator

t-bltg commented Jan 2, 2026

This PR needs some tests added in the test suite.

@t-bltg t-bltg changed the title Draw top border of Table box when show_header=false Draw top border of Table box when show_header=false Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants