SL-16698 Replace tabs with spaces in Scripts
parent
266b5bd20c
commit
58ceaacafd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue