-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I like the minimal format, except I find the solid bar for the headers to be difficult to parse the columns.
DefaultString DefaultInt32 HiddenString
----------------------------------------
Row 1 1 Hidden 1
Row 2 10 Hidden 2
Row 3 100 Hidden 3
So, I thought I would try to make a version that had spaces in it:
.WithHeaderCharMapDefinition(
new Dictionary<HeaderCharMapPositions, char>
{
{ HeaderCharMapPositions.BottomCenter, ' ' },
{ HeaderCharMapPositions.Divider, ' ' },
{ HeaderCharMapPositions.BorderBottom, '-' },
})
But what I found was if both BottomCenter and Divider are spaces (' '), then the space is collapsed between the two of them which squishes the columns together. I ended up needing to put something between the two to make it work:
.WithCharMapDefinition(
new Dictionary<CharMapPositions, char>
{
{ CharMapPositions.DividerY, ' ' },
})
.WithHeaderCharMapDefinition(
new Dictionary<HeaderCharMapPositions, char>
{
{ HeaderCharMapPositions.BottomCenter, '+' },
{ HeaderCharMapPositions.Divider, ' ' },
{ HeaderCharMapPositions.BorderBottom, '-' },
});
This produces a table like this:
DefaultString DefaultInt32 HiddenString
---------------+--------------+--------------
Row 1 1 Hidden 1
Row 2 10 Hidden 2
Row 3 100 Hidden 3
Adding that adds extra columns to the right and left of the headers, which isn't ideal but workable. But, being able to have spaces between the columns would be greatly appreciated. Is there a way of doing that?
Metadata
Metadata
Assignees
Labels
No labels