Allow messages containing new lines to wrap properly
This commit is contained in:
parent
f88b3921f9
commit
3858397d6e
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ namespace NES
|
|||
list<wstring> words;
|
||||
wstring currentWord;
|
||||
for(int i = 0, len = text.length(); i < len; i++) {
|
||||
if(text[i] == L' ') {
|
||||
if(text[i] == L' ' || text[i] == L'\n') {
|
||||
if(currentWord.length() > 0) {
|
||||
words.push_back(currentWord);
|
||||
currentWord.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue