Expand "\\n" to "\n" in the format string only; not message text.

This is consistent with other implementations; neither notification-daemon
or xfce4-notifyd expand "\n" in message text.
This commit is contained in:
Luke Shumaker 2017-02-20 03:48:26 -05:00 committed by Luke Shumaker
parent 4df1a4b731
commit e37bbad2d7

View File

@ -267,7 +267,6 @@ char *notification_replace_format(const char *needle, const char *replacement,
} }
tmp = string_replace_all("\\n", "\n", tmp);
if (settings.ignore_newline) { if (settings.ignore_newline) {
tmp = string_replace_all("\n", " ", tmp); tmp = string_replace_all("\n", " ", tmp);
} }