Parser to strip more than two consecutive line-breaks

Replaces #451.
Actually, these tests are not comprehensive of the changes that were made in this branch to the parser, but the parser is on it's way out, anyway and other tests in the suite probably cover more as a side-effect.