Trim tripple linebreaks

Closes #1621