From 69d219cd7e96b749e54e2c2c54f31013d4619e9f Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:32:53 +0300 Subject: [PATCH] Allow trimming chat start with {{trim}} macro --- public/script.js | 2 +- public/scripts/templates/macros.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b329c2c56..84a0e9d5d 100644 --- a/public/script.js +++ b/public/script.js @@ -4575,7 +4575,7 @@ function addChatsPreamble(mesSendString) { function addChatsSeparator(mesSendString) { if (power_user.context.chat_start) { - return substituteParams(power_user.context.chat_start) + '\n' + mesSendString; + return substituteParams(power_user.context.chat_start + '\n') + mesSendString; } else { diff --git a/public/scripts/templates/macros.html b/public/scripts/templates/macros.html index 2eb9ca7b7..46336c083 100644 --- a/public/scripts/templates/macros.html +++ b/public/scripts/templates/macros.html @@ -4,6 +4,7 @@