From fdf7f20d90021c2a4c36848e9662a16fe2b2bc18 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Sun, 16 Apr 2023 14:04:25 -0400 Subject: [PATCH] Remove newlines too. --- llm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm.cpp b/llm.cpp index 09ab4954..63d0d7a2 100644 --- a/llm.cpp +++ b/llm.cpp @@ -82,7 +82,7 @@ void LLMObject::resetContext() std::string remove_leading_whitespace(const std::string& input) { auto first_non_whitespace = std::find_if(input.begin(), input.end(), [](unsigned char c) { - return !std::isspace(c) || c == '\n'; + return !std::isspace(c); }); return std::string(first_non_whitespace, input.end());