Skip to content

Table line separators not showing for the first line when table headers are hidden #1391

@MoaidHathot

Description

@MoaidHathot

Information

  • OS: Windows 11 23H2 (OS Build 22631.2506)
  • Version: Spectre.Console 0.48.0
  • Terminal: Windows Terminal 1.19.3172.0

Describe the bug
When table headers are hidden, the first row separator is not drawn.

To Reproduce

var table = new Table();

table.AddColumn("First");
table.AddColumn("Second");

table.AddRow("1", "2");
table.AddRow("3", "4");
table.AddRow("5", "6");

table.ShowRowSeparators = true;
table.HideHeaders();

AnsiConsole.Write(table);

Expected behavior
The first row separator should be visible even if table headers are hidden

Screenshots
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds triageSomeone needs to take a look at this

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions