SL-16698 Replace tabs with spaces in Scripts

master
Mnikolenko Productengine 2022-05-13 19:31:47 +03:00
parent 266b5bd20c
commit 58ceaacafd
1 changed files with 4 additions and 1 deletions

View File

@ -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;