From b61a426efeec266944bcfb053975f7488dd7a2f5 Mon Sep 17 00:00:00 2001 From: Spicy_Marinara Date: Sun, 1 Feb 2026 13:57:37 +0100 Subject: [PATCH] Update injector.js --- src/systems/generation/injector.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/systems/generation/injector.js b/src/systems/generation/injector.js index aed6894..c920db9 100644 --- a/src/systems/generation/injector.js +++ b/src/systems/generation/injector.js @@ -507,11 +507,6 @@ function onGenerateAfterCombinePrompts(eventData) { // Always fix newlines around context tags (whether we just injected or not) eventData.prompt = eventData.prompt.replace(//g, '\n'); eventData.prompt = eventData.prompt.replace(/<\/context>/g, '\n'); - - // Remove extra newlines after last_message opening and closing tags - // Match exactly the double newline pattern - eventData.prompt = eventData.prompt.replace(/\n\n/g, '\n'); - eventData.prompt = eventData.prompt.replace(/\n\n<\/last_message>/g, '\n'); } /**