Skip to content

Support variable length data #12

Description

@MarounMaroun

Is it possible to (implicitly) support variable length content? For example,

String[] headers = { "Test", "Header" };
String[][] data = {
    { "Foo", "Bar" },
    { "Kit", "Kat", "Kot" },
};
System.out.println(FlipTable.of(headers, data));

could yield something like:

╔══════╤════════╤═════╗
║ Test │ Header │     ║
╠══════╪════════╪═════╣
║ Foo  │ Bar    │     ║
╟──────┼────────┼─────╢
║ Kit  │ Kat    │ Kot ║
╚══════╧════════╧═════╝

I know this can be achieved by adding an empty string to each other row, but I'm asking for adding it implicitly. Also I'll be happy to submit a PR if it sounds good for you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions