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

trim(): fix handling of indentation-only lines shorter than min_indent #164

Merged
merged 5 commits into from
Mar 3, 2020
Merged

trim(): fix handling of indentation-only lines shorter than min_indent #164

merged 5 commits into from
Mar 3, 2020

Conversation

alandipert
Copy link
Contributor

This builds on #162 and should be merged afterward.

It fixes #163 and takes the approach of copying indentation from indentation-only lines.

I can see an argument for eliding indentation from indentation-only lines, but it seemed more in the spirit of trim()'s existing whitespace handling philosophy (don't mess with it to the extent possible) to keep it. I'd be happy to do it any other way.

@jimhester jimhester merged commit 2e3a4e0 into tidyverse:master Mar 3, 2020
@jimhester
Copy link
Collaborator

Thanks, sorry for the delay in merging!

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.

trim() mishandles indentation-only lines shorter than min_indent
2 participants