From 1621d18b51827a5c12b939f8e2573de58175d70f Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 10 Mar 2010 22:46:24 +0100 Subject: [PATCH] Add an empty line between groups when the group IDs are not shown. --- finddup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/finddup.c b/finddup.c index 2067372..a8847f5 100644 --- a/finddup.c +++ b/finddup.c @@ -317,6 +317,9 @@ void print_result(struct file_with_size *list1, struct file_with_size *list2) { qsort(nodes, nb, sizeof(struct file_with_size *), compare_nodes); for(n = 0; n < nb; n++) { + if(!show_groups && n > 0 && nodes[n]->group_id != nodes[n-1]->group_id) { + printf("\n"); + } print_file(nodes[n]); } -- 2.20.1