Revert "Try to preserve literal "\n" in LLM output." master
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 30 Dec 2025 11:59:14 +0000 (13:59 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 30 Dec 2025 11:59:14 +0000 (13:59 +0200)
This reverts commit 5fce56c76d625201aa098b516d1e456e0da58581.

src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java

index 9fc7235..596cb98 100644 (file)
@@ -220,8 +220,6 @@ public class TaskProcessorCommand implements Command {
         resultFileContent.append(task.userPrompt).append("\n");
 
         // Append the AI response block
-        aiResponse = aiResponse.replace("\r\n", "\\n").replace("\r", "\\n").replace("\n", "\\n");
-
         resultFileContent
                 .append("* ASSISTANT:\n")
                 .append(aiResponse)