Skip to content

fmt: fail if goal is bigger than default width#6096

Merged
sylvestre merged 2 commits intouutils:mainfrom
cakebaker:fmt_fail_if_goal_bigger_than_default_width
Mar 20, 2024
Merged

fmt: fail if goal is bigger than default width#6096
sylvestre merged 2 commits intouutils:mainfrom
cakebaker:fmt_fail_if_goal_bigger_than_default_width

Conversation

@cakebaker
Copy link
Copy Markdown
Contributor

GNU fmt fails when using fmt --goal=76 example.txt because the provided goal value is bigger than 75, the default width. uutils fmt, on the other hand, doesn't fail.

This PR fixes this issue and also replaces two magic numbers with constants.

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?

@sylvestre sylvestre merged commit a3ff7b7 into uutils:main Mar 20, 2024
@cakebaker cakebaker deleted the fmt_fail_if_goal_bigger_than_default_width branch March 20, 2024 10:19
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.

2 participants