From 7a5d585d7bf3ff4c0485127c600a174be2e1b330 Mon Sep 17 00:00:00 2001 From: Skitter Bot Date: Sun, 1 Mar 2026 05:12:18 -0600 Subject: [PATCH] Fix #3136: Preserve spacing in append/replace by wrapping in out div Signed-off-by: Skitter Bot --- evennia/web/static/webclient/js/plugins/goldenlayout.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/web/static/webclient/js/plugins/goldenlayout.js b/evennia/web/static/webclient/js/plugins/goldenlayout.js index aca6f8b836..66e37785dd 100644 --- a/evennia/web/static/webclient/js/plugins/goldenlayout.js +++ b/evennia/web/static/webclient/js/plugins/goldenlayout.js @@ -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("
" + message + "
"); } else if ( updateMethod === "append" ) { - textDiv.append(message); + textDiv.append("
" + message + "
"); } else { // line feed - var cls = (kwargs === undefined) || (kwargs['cls'] === undefined) ? 'out' : kwargs['cls']; textDiv.append("
" + message + "
"); }