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

Fix off-by-one issue in pretty-formatter #1665

Merged
merged 3 commits into from
Feb 7, 2025
Merged

Fix off-by-one issue in pretty-formatter #1665

merged 3 commits into from
Feb 7, 2025

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Feb 7, 2025

The pretty-format methods have a max_line_length that is used to keep the formatted output within the given number of columns when possible. The argument is supposed to be >0, but in some cases, max(0, ...) was used, resulting in errors when the limit was hit. This PR updates those calls to max(1, ...).

This PR includes some commits to better organize the tests - please view by commit.

@cla-bot cla-bot bot added the cla:yes label Feb 7, 2025
@plypaul plypaul marked this pull request as ready for review February 7, 2025 02:55
@plypaul plypaul requested a review from a team as a code owner February 7, 2025 02:55
@plypaul plypaul merged commit 05f5566 into main Feb 7, 2025
39 checks passed
@plypaul plypaul deleted the p--misc--01 branch February 7, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants