Skip to content

True minimal table style #2003

@ericnewton76

Description

@ericnewton76

I'm replacing hand written table output, which looked like this:

[2  [10         [12           [30                             [10         <-- these are just widths for ref
##  Column2     Col3          Col4                            Col5
--  ----------  ------------  ------------------------------  ----------
 1  data123                                                   col5 111
 2  data345                   col4data,row2                   col5 222

the curent hand code writes all the fields use Substring and Padright to keep alignments and truncate overflows and such.

And Minimal style is similar but not "as minimal" as this one... how difficult would it be to submit a PR and have basically TrueMinimal style ? I looked through TableContextRenderer and it seems to insist on either borders (everywhere) or no borders (anywhere) which realistically this is "Header bottom border only" which IMO is the "true minimal"...

public static Table TrueMinimal(this Table table) {
table.Border = TableBorder.None;
table.HeaderBottomBorder = "-" or "=";
table.ShowRowSeparator = false;
return table;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new featureneeds 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