Fixed issue with trailing linebreaks