New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table cuts off column headers when column data is shorter #4

Closed
aappddeevv opened this Issue May 5, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@aappddeevv

aappddeevv commented May 5, 2017

Headers are cut short when the data is shorter. So if the header is "Header" but all the data for that column is only 2 characters, the header will cut short to "He".

@khrome

This comment has been minimized.

Show comment
Hide comment
@khrome

khrome May 8, 2017

Owner

Try the changes on HEAD (just clone the repo). I've got some 256 color changes brewing, plus my color FN isn't stable, so I'm not ready to push it to NPM... but .table() now has 2 options to help out:

  • justify : auto expand to the provided width (if table is naturally smaller)
  • includeHeader : include the header in sizing calculations

Let me know if this works!

Owner

khrome commented May 8, 2017

Try the changes on HEAD (just clone the repo). I've got some 256 color changes brewing, plus my color FN isn't stable, so I'm not ready to push it to NPM... but .table() now has 2 options to help out:

  • justify : auto expand to the provided width (if table is naturally smaller)
  • includeHeader : include the header in sizing calculations

Let me know if this works!

@khrome

This comment has been minimized.

Show comment
Hide comment
@khrome

khrome Mar 12, 2018

Owner

1.4.3 makes these changes live

Owner

khrome commented Mar 12, 2018

1.4.3 makes these changes live

@khrome khrome closed this Mar 12, 2018

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