Skip to content

feat: Support for auto-sizing specific columns using None #38

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

Merged
merged 2 commits into from
Jun 26, 2022

Conversation

DenverCoder1
Copy link
Owner

None can now be used to specify that specific column(s) should be automatically sized.

Example:

table2ascii(
        header=["#", "G", "H", "R", "S"],
        body=[["1", "30", "40", "35", "30"], ["2", "30", "40", "35", "30"]],
        footer=["TOTL", "130", "140", "135", "130"],
        column_widths=[7, None, 5, 5, None],
)

Additionally, improvements to the docs.

@DenverCoder1 DenverCoder1 merged commit 91de4cc into main Jun 26, 2022
@DenverCoder1 DenverCoder1 deleted the column-widths-none branch June 26, 2022 22:48
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