Trim trailing whitespace in config file #342
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed one of the options in my config file wasn't working. It turned out this is because it had a space at the end of the line
I thought it could be nice to trim the whitespace at the end of the line so we don't leave people head scratching like I was! If preferred, we could spit out a warning instead of trimming. Then that would make it easier to find out why a configuration isn't working
I don't often write C, so feel free to suggest any changes, I'll be happy to implement them!
Also, I'm new to this repo, so if there's already something like
trim_end
I should be using instead, or if I should move the function to another file, please let me know 🙂