From 36069abef781f205fa7493babdc84262af18512f Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 9 May 2008 14:30:46 +0100 Subject: Improved list issue output --- src/cli.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/cli.c b/src/cli.c index 153c6f9..1c6227e 100644 --- a/src/cli.c +++ b/src/cli.c @@ -29,24 +29,23 @@ void list_issues(iss ** issue, int no_of_issues, int verbose) int iss_no, sec_no, it_no; for(iss_no=0;iss_no<=no_of_issues;iss_no++) { - printf("[%i]\t", iss_no); - printf("%s\n", issue[iss_no]->title); + printf("%2i: %s\n", iss_no, issue[iss_no]->title); if(verbose >= 2) - printf("Year: %i; Months: %i - %i\n",issue[iss_no]->date.year,issue[iss_no]->date.firstmonth,issue[iss_no]->date.lastmonth); + printf(" Year: %i; Months: %i - %i\n",issue[iss_no]->date.year,issue[iss_no]->date.firstmonth,issue[iss_no]->date.lastmonth); if(verbose >= 1) { for(sec_no=0; sec_no<=issue[iss_no]->no_of_sections; sec_no++) { - printf("\t%i: %s\n", issue[iss_no]->section[sec_no]->number, + printf(" %2i: %s\n", issue[iss_no]->section[sec_no]->number, issue[iss_no]->section[sec_no]->title); - printf("\t%s\n", issue[iss_no]->section[sec_no]->uri); + printf(" %s\n", issue[iss_no]->section[sec_no]->uri); if(verbose >= 2) { for(it_no=0; it_no<=issue[iss_no]->section[sec_no]->no_of_items; it_no++) { - printf("\t\tpp %i - %i: %s\n", + printf(" pp %2i - %2i: %s\n", issue[iss_no]->section[sec_no]->item[it_no]->firstpage, issue[iss_no]->section[sec_no]->item[it_no]->lastpage, issue[iss_no]->section[sec_no]->item[it_no]->title); -- cgit v1.2.3