From bdface378efe99321463f4353a8fe3c0aa1223d9 Mon Sep 17 00:00:00 2001 From: bjt-user Date: Thu, 24 Aug 2023 02:15:46 +0200 Subject: [PATCH] added newline between events --- src/list_handling.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/list_handling.c b/src/list_handling.c index b91f5d5..d392be7 100644 --- a/src/list_handling.c +++ b/src/list_handling.c @@ -52,7 +52,10 @@ void print_upcoming(struct event *head, char current_start_date[]) { pretty_print_date_time(head->start_date); print_end_date(head->end_date); printf("\n%s\n", head->summary); + if (head->next != NULL) + printf("\n"); } - head = head->next; + + head = head->next; } }