fix the output format of diff