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

dont indent() an empty message #1489

Merged
merged 2 commits into from
Nov 14, 2021
Merged

Conversation

MichaelChirico
Copy link
Contributor

Fixes #1487 -- character() is not passed to indent(), so " " won't show up in the output.

I'm not sure this is a complete solution, or if it might have unintended consequences, so I am just filing this simple PR demonstrating a fix for now before attempting to add tests/NEWS.

R/snapshot.R Outdated Show resolved Hide resolved
@hadley hadley merged commit ccc4194 into r-lib:main Nov 14, 2021
@hadley
Copy link
Member

hadley commented Nov 14, 2021

Thanks!

@MichaelChirico MichaelChirico deleted the snapshot-indent branch November 15, 2021 00:39
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.

snapshot transform "leaves a trace" when returning character(0)?
2 participants