re-indent templates