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

formatters return output #921

Merged
merged 1 commit into from
Oct 29, 2023
Merged

formatters return output #921

merged 1 commit into from
Oct 29, 2023

Conversation

WillAbides
Copy link
Contributor

This resolves the issue I raised in #920. It also adds a test for formatters. There weren't tests previously, so I added just enough to demonstrate the issue is resolved.

Closes #920

Some of the formatters were writing directly to stdout instead of returning the output. That made them more difficult to use them with revivelib. This PR updates those formatters to write to a buffer and return the resulting string.
@chavacava chavacava merged commit cb72bd8 into mgechev:master Oct 29, 2023
4 checks passed
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.

Formatters return an empty string
2 participants