Use invisible formatting for clipboard copy-paste
When text is copied from browser it looks like "00:00 <nick> text." Firefox adds new lines between records. It would be good to get rid of it.
This commit is contained in:
@ -456,7 +456,7 @@ window.chat.renderMsg = function(msg, nick, time, team) {
|
||||
var t = '<time title="'+tb+'" data-timestamp="'+time+'">'+ta+'</time>';
|
||||
var s = 'style="color:'+COLORS[team]+'"';
|
||||
var title = nick.length >= 8 ? 'title="'+nick+'" class="help"' : '';
|
||||
return '<p>'+t+'<mark '+s+'>'+nick+'</mark><span>'+msg+'</span></p>';
|
||||
return '<p>'+t+'<span class="invisibleseparator"> <</span><mark '+s+'>'+nick+'</mark><span class="invisibleseparator">> </span><span class="blockquote">'+msg+'</span></p>';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user