diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-01-26 16:31:23 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-01-26 16:31:23 +0200 |
commit | 3d00b4bb6c2d2e2eb2e4aaab27a75e2408dd2626 (patch) | |
tree | 820c3d635f3723e832988fdf48339fecf807b47f | |
parent | efd41b35acaae88f49a2f9167bf76cbbede1a950 (diff) |
SL-16698 Replace tabs with spaces which are used in the editor
-rw-r--r-- | indra/newview/llpreviewnotecard.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpreviewnotecard.cpp b/indra/newview/llpreviewnotecard.cpp index 230def5362..3fd4f51559 100644 --- a/indra/newview/llpreviewnotecard.cpp +++ b/indra/newview/llpreviewnotecard.cpp @@ -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; |