template: newline fix