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

Add wrap_lines: bool option allowing wrapping be disabled entirely #328

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

zanieb
Copy link
Contributor

@zanieb zanieb commented Jan 4, 2024

Hi!

I want to be able to disable line wrapping entirely for logging runs and for users that would rather rely on their terminal's line wrapping. This pull request introduces a wrap_lines option which disables wrapping. Since textwrap::fill is used insert prefixes as well, this requires a little implementation to preserve that behavior.

@zkat zkat merged commit b074446 into zkat:main Jan 4, 2024
11 checks passed
@zanieb
Copy link
Contributor Author

zanieb commented Jan 4, 2024

Thanks!

zanieb added a commit to astral-sh/uv that referenced this pull request Jan 4, 2024
Adds support for a `PUFFIN_NO_WRAP` environment variable which disables
line wrapping in `miette` output.

We set this variable in the scenario tests to improve the readability of
snapshots.

I contributed the ability to disable line wrapping upstream at
zkat/miette#328
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.

None yet

2 participants