From: Francois Fleuret Date: Wed, 10 Mar 2010 21:46:24 +0000 (+0100) Subject: Add an empty line between groups when the group IDs are not shown. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=1621d18b51827a5c12b939f8e2573de58175d70f;p=finddup.git Add an empty line between groups when the group IDs are not shown. --- 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]); }