fix new lines characters in candidates/edit