Don't insert the non-breaking space when an action starts with an apostrophe.
This commit is contained in:
parent
51694538ff
commit
a5843ae71b
1 changed files with 3 additions and 1 deletions
|
@ -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 = <div id={`message-${msg.getId()}`} class={classes} style={styles}>
|
||||
{eAvatar = <div class={avatarClasses}/>}
|
||||
|
|
Loading…
Reference in a new issue