fix extra newlines in template