SL-16698 Replace tabs with spaces which are used in the editor

master
Mnikolenko Productengine 2022-01-26 16:31:23 +02:00
parent efd41b35ac
commit 3d00b4bb6c
1 changed files with 4 additions and 1 deletions

View File

@ -866,7 +866,10 @@ bool LLPreviewNotecard::loadNotecardText(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;