summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-05-13 19:31:47 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-05-13 19:31:47 +0300
commit58ceaacafd67d69deeeac8905ed46c2920eb2c4d (patch)
tree1dd569ae26f8fc940e69cdb3512b5bfebbe873ab /indra
parent266b5bd20cf4603ec7d90fd804f2f20219de4681 (diff)
SL-16698 Replace tabs with spaces in Scripts
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpreviewscript.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index a32dc8beda..d677a996c1 100644
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -601,7 +601,10 @@ bool LLScriptEdCore::loadScriptText(const std::string& filename)
buffer[nread] = '\0';
fclose(file);
- mEditor->setText(LLStringExplicit(buffer));
+ std::string text = std::string(buffer);
+ LLStringUtil::replaceTabsWithSpaces(text, LLTextEditor::spacesPerTab());
+
+ mEditor->setText(text);
delete[] buffer;
return true;