summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewnotecard.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-01-26 16:31:23 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-01-26 16:31:23 +0200
commit3d00b4bb6c2d2e2eb2e4aaab27a75e2408dd2626 (patch)
tree820c3d635f3723e832988fdf48339fecf807b47f /indra/newview/llpreviewnotecard.cpp
parentefd41b35acaae88f49a2f9167bf76cbbede1a950 (diff)
SL-16698 Replace tabs with spaces which are used in the editor
Diffstat (limited to 'indra/newview/llpreviewnotecard.cpp')
-rw-r--r--indra/newview/llpreviewnotecard.cpp5
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;