SL-16698 Replace tabs with spaces which are used in the editor
parent
efd41b35ac
commit
3d00b4bb6c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue