Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Trailing whitespaces #115
I quite liked your package and decided to use it as a replacement for
"*": ... whitespace: ".text.md": removeTrailingWhitespace: false
Tried a few other ways of expressing my intention in the config, but none worked. Unfortunately, I had to give up and return to gfm, since restoring the whitespaces before every commit is a pain. Could you please update the docs or implement something to make it possible to keep the spaces before the newline characters?
I imagine this can be possible already. In this case the path to the solution is probably too complex or unclear.
I think the "error" is in your
".md.text": whitespace: removeTrailingWhitespace: false
Make sure that there is no leading whitespace, otherwise you're in some other scope.
Finally got it, thank you! The example (if you decide to add it later on) should probably include the default
"*": # all current config ".md.text": whitespace: removeTrailingWhitespace: false
My confusion was caused by the lack of context in the example. Might be worth adding it to save others from the same pitfall.