diff: handle lines containing only whitespace and tabs better