Skip to content

Commit

Permalink
replace newlines in desktop notif with spaces instead of removing them (
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork authored and Gargron committed Oct 14, 2017
1 parent f63a40e commit ae716a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/actions/notifications.js
Expand Up @@ -31,6 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {

const unescapeHTML = (html) => {
const wrapper = document.createElement('div');
html = html.replace(/<br \/>|<br>|\n/, ' ');
wrapper.innerHTML = html;
return wrapper.textContent;
};
Expand Down

0 comments on commit ae716a1

Please sign in to comment.