mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Adding test and update render to fix issue with rendering separator when headers are hidden fixing issue 1391.
This commit is contained in:

committed by
Patrik Svensson

parent
eb38f76a6a
commit
ff7282ecb8
@ -150,9 +150,9 @@ internal static class TableRenderer
|
||||
result.Add(Segment.LineBreak);
|
||||
}
|
||||
|
||||
// Show row separator?
|
||||
// Show row separator, if headers are hidden show separator after the first row
|
||||
if (context.Border.SupportsRowSeparator && context.ShowRowSeparators
|
||||
&& !isFirstRow && !isLastRow)
|
||||
&& (!isFirstRow || (isFirstRow && !context.ShowHeaders)) && !isLastRow)
|
||||
{
|
||||
var hasVisibleFootes = context is { ShowFooters: true, HasFooters: true };
|
||||
var isNextLastLine = index == context.Rows.Count - 2;
|
||||
|
Reference in New Issue
Block a user