From: Art Cancro Date: Thu, 21 Aug 2008 02:17:07 +0000 (+0000) Subject: Minor adjustments to address book view -- fill in X-Git-Tag: v7.86~2011 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=8eb21c35bc6ef1d72d651dd60fbf13d5ce13471e;p=citadel.git Minor adjustments to address book view -- fill in missing columns at end if the total number of contacts is not divisible by 4 --- diff --git a/webcit/messages.c b/webcit/messages.c index 360be933d..0c11d6b18 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2123,10 +2123,18 @@ void do_addrbook_view(struct addrbookent *addrbook, int num_ab) { ++displayed; } + /* Placeholders for empty columns at end */ + if ((num_ab % 4) != 0) { + for (i=0; i<(4-(num_ab % 4)); ++i) { + wprintf(" "); + } + } + wprintf("\n"); end_tab((num_pages-1), num_pages); - begin_tab(num_pages, num_pages); /* There are no submit buttons so this is empty */ + begin_tab(num_pages, num_pages); + /* FIXME there ought to be something here */ end_tab(num_pages, num_pages); for (i=0; i