Parser to strip more than two consecutive line-breaks

Replaces #451.
Hurray no–change test helper :)