Removes linebreaks from template