xdiff-interface.c: strip newline (and cr) from line before pattern matching