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 multi-parameter println spacing #228

Merged
merged 1 commit into from Apr 8, 2024

Conversation

klauspost
Copy link
Contributor

@klauspost klauspost commented Apr 8, 2024

fmt.Println will add spaces between elements when there is multiple parameters sent. This is also described in the documentation of this library: Spaces are always added between operands and a newline is appended.

When wrapping the colors parameters were combined using fmt.Sprint(a...) - which does not space out parameters.

Use fmt.Sprintln to combine parameters.

Fixes #218

`fmt.Println` will add spaces between elements when there is multiple parameters sent.

When wrapping the colors parameters were combined using `fmt.Sprint(a...)` - which does not space out parameters.

Use `fmt.Sprintln` to combine parameters.

Fixes fatih#218
@fatih fatih merged commit b6598b1 into fatih:main Apr 8, 2024
1 check passed
@fatih
Copy link
Owner

fatih commented Apr 8, 2024

Thank you @klauspost for the fix. How important is a release for you? I was planning to wait a few weeks before releasing a new version.

@klauspost klauspost deleted the fix-println-issue-218 branch April 8, 2024 12:12
@klauspost
Copy link
Contributor Author

@fatih Not very, as it is cosmetic. I can always pin the master commit. Feel free to keep it for the RGB release.

@fatih
Copy link
Owner

fatih commented Apr 8, 2024

Got it, thank you again. Feel free to ping me If I forgot the release.

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.

Documentation lies about Println
2 participants