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

Option to adjust default text wrap length #23

Open
kinghuang opened this issue Jul 4, 2022 · 0 comments
Open

Option to adjust default text wrap length #23

kinghuang opened this issue Jul 4, 2022 · 0 comments

Comments

@kinghuang
Copy link

The wrap function takes a wrap_max argument that controls the maximum line width. When I'm using the typical functions for printing formatted messages like good, fail, warn, and info, they are calling wrap internally, and there's no easy way to adjust the line width. The Printer class does have a line_max argument, but it's only used for dividers.

Can there be a way to adjust the default wrap_max value, either by configuring a Printer instance or via an environment variable? I'm using wasabi in my spaCy related projects, and the short 80 character output has been really limiting some of my logging output.

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