From f947bc71d46abf35e74ae6a1c00bbe5ac4a190a7 Mon Sep 17 00:00:00 2001 From: progandy Date: Wed, 27 Feb 2013 18:09:06 +0100 Subject: [PATCH] interpert
if newline and markup are allowed --- notification.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/notification.c b/notification.c index 4eaa92d..e3d3b47 100644 --- a/notification.c +++ b/notification.c @@ -298,6 +298,10 @@ int notification_init(notification * n, int id) if (!settings.allow_markup) n->msg = notification_fix_markup(n->msg); + else if (!settings.ignore_newline) { + n->msg = string_replace("
", "\n", n->msg); + n->msg = string_replace("
", "\n", n->msg); + } while (strstr(n->msg, "\\n") != NULL) n->msg = string_replace("\\n", "\n", n->msg);