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

Removing all padding still results in padding existing. #220

Open
ryantheleach opened this issue Nov 16, 2022 · 0 comments
Open

Removing all padding still results in padding existing. #220

ryantheleach opened this issue Nov 16, 2022 · 0 comments

Comments

@ryantheleach
Copy link

ryantheleach commented Nov 16, 2022

What did you do?

Set all padding to zero, and removed all VRules

What did you expect to happen?

============================================================
Name                              Played     Won       Chips
============================================================
xxxxxxxxxxxxxxxxxxxx                  xxasdfasdfzxcvzxcvzxcv
1                   xxxxxxxxxxxxxxxxxxxx      xx           4
============================================================

What actually happened?

=================================================================
 Name                               Played      Won        Chips 
=================================================================
 xxxxxxxxxxxxxxxxxxxx                   xx asdfasdf zxcvzxcvzxcv 
 1                    xxxxxxxxxxxxxxxxxxxx       xx            4 
=================================================================

What I was trying to actually achieve, but struggled to find the options for:

===============================================================
Name                               Played      Won        Chips
===============================================================
xxxxxxxxxxxxxxxxxxxx                   xx asdfasdf zxcvzxcvzxcv
1                    xxxxxxxxxxxxxxxxxxxx       xx            4
===============================================================

Basically, it appear impossible to create tables on PrettyTable that have zero padding, namely because space padding characters are added automatically. see: https://github.com/jazzband/prettytable/blob/master/src/prettytable/prettytable.py#L1869

even if it would be intuitive for zero padding to mean minimum padding for internal padding, it doesn't make sense for it to exist for the outside edges.

As it is, it's acting like what I would have expected if the vrule character was set to " " and the cross characters set to "="

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

No branches or pull requests

1 participant