From a5843ae71b43b5df976468e7daa65b9cb2570fff Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 21 Jan 2024 16:34:54 +0000 Subject: [PATCH] Don't insert the non-breaking space when an action starts with an apostrophe. --- src/mami.js/ui/messages.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mami.js/ui/messages.jsx b/src/mami.js/ui/messages.jsx index 581fdd0..0739b3d 100644 --- a/src/mami.js/ui/messages.jsx +++ b/src/mami.js/ui/messages.jsx @@ -118,7 +118,9 @@ Umi.UI.Messages = (function() { classes.push('message-tiny'); avatarSize = '40'; - msgText = "\xA0" + msgText; + + if(msgText.indexOf("'") !== 0 || (msgText.match(/\'/g).length % 2) === 0) + msgText = "\xA0" + msgText; eBase =
{eAvatar =
}