From b88cae6c6bc90496bfff16713286582d7954d30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 14 Oct 2017 14:41:12 +0200 Subject: [PATCH] replace newlines in desktop notif with spaces instead of removing them (#5361) --- app/javascript/mastodon/actions/notifications.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js index c7d2481227..b24ac8b733 100644 --- a/app/javascript/mastodon/actions/notifications.js +++ b/app/javascript/mastodon/actions/notifications.js @@ -31,6 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => { const unescapeHTML = (html) => { const wrapper = document.createElement('div'); + html = html.replace(/
|
|\n/, ' '); wrapper.innerHTML = html; return wrapper.textContent; };