From 8eb21c35bc6ef1d72d651dd60fbf13d5ce13471e Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 21 Aug 2008 02:17:07 +0000 Subject: [PATCH] Minor adjustments to address book view -- fill in missing columns at end if the total number of contacts is not divisible by 4 --- webcit/messages.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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