Fixed code formatting in pmd formatter
Merge pull request #173 from DickvdBrink/code-formatting

Fixed code formatting in pmd formatter
Fixes #163 trailing whitespace rule doesn't always work

* the flaw was that the rule didn't take into account leading whitespace
* there was also a bug where it didn't handle multiple lines of trailing
whitespace in a row