mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix #3136: Preserve spacing in append/replace by wrapping in out div
Signed-off-by: Skitter Bot <skitterx+bot@users.noreply.github.com>
This commit is contained in:
parent
b27d748fe4
commit
7a5d585d7b
1 changed files with 3 additions and 3 deletions
|
|
@ -669,12 +669,12 @@ let goldenlayout = (function () {
|
|||
let atBottom = false;
|
||||
let updateMethod = textDiv.attr("updateMethod");
|
||||
|
||||
var cls = (kwargs === undefined) || (kwargs['cls'] === undefined) ? 'out' : kwargs['cls'];
|
||||
if ( updateMethod === "replace" ) {
|
||||
textDiv.html(message);
|
||||
textDiv.html("<div class='" + cls + "'>" + message + "</div>");
|
||||
} else if ( updateMethod === "append" ) {
|
||||
textDiv.append(message);
|
||||
textDiv.append("<div class='" + cls + "'>" + message + "</div>");
|
||||
} else { // line feed
|
||||
var cls = (kwargs === undefined) || (kwargs['cls'] === undefined) ? 'out' : kwargs['cls'];
|
||||
textDiv.append("<div class='" + cls + "'>" + message + "</div>");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue