From 69537c2c1d0d0889fcdd1756535052004964a656 Mon Sep 17 00:00:00 2001 From: vimbaer Date: Sun, 18 Jan 2015 21:44:21 +0100 Subject: [PATCH] Don't trim leading whitespace, fixes #208. Use g_strchomp (https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html#g-strchomp) instead of g_strstrip which both removes leading and trailing whitespace. --- notification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notification.c b/notification.c index f96931f..ede5593 100644 --- a/notification.c +++ b/notification.c @@ -353,7 +353,7 @@ int notification_init(notification * n, int id) n->msg = string_replace_all("%p", "", n->msg); } - n->msg = g_strstrip(n->msg); + n->msg = g_strchomp(n->msg); if (id == 0) { n->id = ++next_notification_id; @@ -563,7 +563,7 @@ void notification_update_text_to_render(notification *n) char *buf = NULL; - char *msg = g_strstrip(n->msg); + char *msg = g_strchomp(n->msg); /* print dup_count and msg */ if ((n->dup_count > 0 && !settings.hide_duplicates_count)