Removes unnecessary empty lines

Removes unnecessary empty lines from templates