interpert <br> if newline and markup are allowed

This commit is contained in:
progandy 2013-02-27 18:09:06 +01:00 committed by Sascha Kruse
parent f58fc76966
commit f947bc71d4

View File

@ -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("<br>", "\n", n->msg);
n->msg = string_replace("<br />", "\n", n->msg);
}
while (strstr(n->msg, "\\n") != NULL)
n->msg = string_replace("\\n", "\n", n->msg);