xdiff/xutils.c(xdl_hash_record): factor out whitespace handling