write out done gists in correct format