Skip to content

feat: Ability to align all columns with a single Alignment #91

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 5 commits into from
Dec 28, 2022

Conversation

DenverCoder1
Copy link
Owner

A single alignment type can be used for all columns::

table2ascii(
    header=["First Name", "Last Name", "Age"],
    body=[
        ["John", "Smith", 30],
        ["Jane", "Doe", 28],
    ],
    # Align all columns to the left
    alignments=Alignment.LEFT,
)
╔══════════════════════════════╗
║ First Name   Last Name   Age ║
╟──────────────────────────────╢
║ John         Smith       30  ║
║ Jane         Doe         28  ║
╚══════════════════════════════╝

@DenverCoder1 DenverCoder1 added the enhancement New feature or request label Dec 28, 2022
@DenverCoder1 DenverCoder1 merged commit dfbca8c into main Dec 28, 2022
@DenverCoder1 DenverCoder1 deleted the feat/single-alignment branch December 28, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant