on a second read ... I see that you mean the case that should only join consecutive lines with the same key