Adding test and update render to fix issue with rendering separator when headers are hidden fixing issue 1391.

This commit is contained in:
BlazeFace
2024-04-07 09:19:43 -07:00
committed by Patrik Svensson
parent eb38f76a6a
commit ff7282ecb8
3 changed files with 32 additions and 2 deletions

View File

@ -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;