add newline before {{end}} in index