I have a small problem with the "remove trailing whitespace" feature.
The problem is with completely empty lines.
Let's say I have this PHP code:
and now I'm adding a blank line and another line like this:
Then, after saving and regardless of the "remove trailing whitespace" setting, that blank line won't be blank, but it will contain four spaces.
Now git gets really pissy about that and so does the project maintainer (which is myself, I guess), so I'm asking here: What's the rationale for not removing trailing space if there's nothing else on the line? And of course: Can this be changed somehow? Or do I have to write a plugin (can a plugin even fix this - I'm a total noob to JetBrains' editors)?