From b0ab06555ba0887d1b2405d64dbedcd776438eb3 Mon Sep 17 00:00:00 2001 From: Ariadna Vigo Date: Thu, 9 Jul 2020 19:38:34 +0200 Subject: Modularized output routines a bit --- cras.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cras.c b/cras.c index 5e2cd50..0f21240 100644 --- a/cras.c +++ b/cras.c @@ -91,7 +91,7 @@ print_task(TaskLst tasks, int i, int color) static void print_short_output(TaskLst tasks) { - printf("%d/%d/%d to do/done/total\n", tasklst_tasks_todo(tasks), + printf("%d/%d/%d", tasklst_tasks_todo(tasks), tasklst_tasks_done(tasks), tasklst_tasks_total(tasks)); } @@ -109,6 +109,7 @@ print_output(TaskLst tasks, int color) putchar('\n'); print_short_output(tasks); + printf(" to do/done/total"); } static void @@ -189,6 +190,8 @@ output_mode(const char *crasfile, int mode, int color) print_short_output(tasks); else print_output(tasks, color); + + putchar('\n'); } static void -- cgit v1.2.3