Skip to content
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

adds new colwidth arg allowing fixed width cols #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cabutchei
Copy link

This new argument in the tabulate function could be very useful for printing tables with consistent width. Since the program seems to ignore maxcolwidths whenever there are numeric strings of larger length than its value, I found it reasonable to be consistent with this and set colwidth to match the length of the longest numeric string whenever it happens to be shorter than it value. This preserves both the original behavior of the program and the width consistency across columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant