fix unescaped newline in template