diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-11-19 01:21:14 +0200 |
|---|---|---|
| committer | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2025-11-19 18:58:15 +0200 |
| commit | 842095059730c67367719d57d51c33fe6c87af74 (patch) | |
| tree | 6e664cb8b9dd201e0e024f9826da402579f8499a /indra/newview/llviewermessage.cpp | |
| parent | 5c8022f1549cd4bf4b6f1da8c1f6628a7f1a5da6 (diff) | |
#4926 Replace tabs with spaces in script messages
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
