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