From caabb01a6ee4cfc5a806c72f4828dfbc3e78ec5f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 9 Dec 2025 15:15:29 -0800 Subject: [PATCH] [lldb] Stop emitting pointless newline (NFC) AppendError ends up trimming this "\n" from the end of the string, then putting another on on. So there's no reason to keep appending the newline in CommandObjectMultiword::Execute. --- lldb/source/Commands/CommandObjectMultiword.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index e08b33cdce940..a881b19119280 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -204,7 +204,6 @@ void CommandObjectMultiword::Execute(const char *args_string, " Use \"help " + GetCommandName() + "\" to find out more.") .str()); } - error_msg.append("\n"); result.AppendError(error_msg); }