Skip to content
This repository
Browse code

interpert <br> if newline and markup are allowed

  • Loading branch information...
commit f947bc71d46abf35e74ae6a1c00bbe5ac4a190a7 1 parent f58fc76
authored February 27, 2013 knopwob committed March 08, 2013

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  notification.c
4  notification.c
@@ -298,6 +298,10 @@ int notification_init(notification * n, int id)
298 298
 
299 299
         if (!settings.allow_markup)
300 300
                 n->msg = notification_fix_markup(n->msg);
  301
+        else if (!settings.ignore_newline) {
  302
+                n->msg = string_replace("<br>", "\n", n->msg);
  303
+                n->msg = string_replace("<br />", "\n", n->msg);
  304
+        }
301 305
 
302 306
         while (strstr(n->msg, "\\n") != NULL)
303 307
                 n->msg = string_replace("\\n", "\n", n->msg);

0 notes on commit f947bc7

Please sign in to comment.
Something went wrong with that request. Please try again.