Adjust spaces for template compile