From 417b9ec2090637ab00167e54dae1b19f2470ae82 Mon Sep 17 00:00:00 2001 From: Andrey Lihatskiy Date: Wed, 19 Nov 2025 01:21:14 +0200 Subject: [PATCH] #4926 Replace tabs with spaces in script messages --- indra/newview/llviewermessage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index e9f6d7175e..29f3bc62d5 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2435,6 +2435,8 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) color.setVec(1.f,1.f,1.f,1.f); msg->getStringFast(_PREHASH_ChatData, _PREHASH_Message, mesg); + // Preserve tabs from scripts by expanding them to spaces before any sanitization/formatting. + LLStringUtil::replaceTabsWithSpaces(mesg, 4); bool ircstyle = false;