editorconfig: remove trailing whitespace in source code (cherry picked from commit 7c67213cefd0404232ef758a1dc33751e717a3f1)