From aae73d888eb52071848185f19c78cc180c33acb2 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Mon, 4 Dec 2017 20:31:52 +0100 Subject: [PATCH] Show multiple URLs pretty with print --- src/notification.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/notification.c b/src/notification.c index 5250375..3eec08b 100644 --- a/src/notification.c +++ b/src/notification.c @@ -49,10 +49,12 @@ void notification_print(notification *n) printf("\tframe: %s\n", n->colors[ColFrame]); printf("\tid: %d\n", n->id); if (n->urls) { + char *urls = string_replace_all("\n", "\t\t\n", g_strdup(n->urls)); printf("\turls:\n"); printf("\t{\n"); - printf("\t\t%s\n", n->urls); + printf("\t\t%s\n", urls); printf("\t}\n"); + g_free(urls); } if (n->actions) {