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

Prettify ASCII tables #23

Open
naltun opened this issue Oct 9, 2019 · 3 comments
Open

Prettify ASCII tables #23

naltun opened this issue Oct 9, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@naltun
Copy link

naltun commented Oct 9, 2019

I've marketplace info'd two different modules to compare:
image

Having nice-looking ASCII tables for each query would be class.

@naltun naltun changed the title marketplace info <module> output is broken marketplace info <module> output is sometimes broken Oct 9, 2019
@lanmaster53
Copy link
Owner

This isn't broken. It's the nature of ascii tables. The individual tables extend to the width of the longest piece of data and it is wrapping. If you want, update this issue to a feature request for prettier tables. Otherwise, we can close. I'm not sure if I'll ever try to fix it, but if someone wants to take a stab at it, they are welcome to. I think I looked at several ascii table libraries but wasn't really a fan of any of them, so I stuck with my original implementation.

@naltun naltun changed the title marketplace info <module> output is sometimes broken Prettify ASCII tables Oct 10, 2019
@naltun naltun changed the title Prettify ASCII tables Feature Request: Prettify ASCII tables Oct 10, 2019
@naltun
Copy link
Author

naltun commented Oct 10, 2019

Fair enough. Thanks for swift feedback.

@lanmaster53 lanmaster53 added the enhancement New feature or request label Oct 30, 2019
@lanmaster53 lanmaster53 changed the title Feature Request: Prettify ASCII tables Prettify ASCII tables Oct 30, 2019
@jnazarioCensys
Copy link

@lanmaster53 would the textwrap module help here? basically wrap all fields to some width. does the ascii table code you use support multiline fields which would result from wrapped text?

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

No branches or pull requests

3 participants