From 6ad55a7fa5334e3fafca2a9edf87aa95039a7d12 Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Sat, 25 Feb 2023 23:28:50 +0200 Subject: [PATCH] Fix newlines in WI insertion --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 75b5e8763..8eb1f5381 100644 --- a/public/index.html +++ b/public/index.html @@ -751,10 +751,10 @@ for (const entry of newEntries) { if (entry.position === world_info_position.after) { - worldInfoAfter = `${entry.content}${worldInfoAfter}\n`; + worldInfoAfter = `${entry.content}\n${worldInfoAfter}`; } else { - worldInfoBefore = `${entry.content}${worldInfoBefore}\n`; + worldInfoBefore = `${entry.content}\n${worldInfoBefore}`; } if (encode(worldInfoBefore + worldInfoAfter).length >= world_info_budget) {