Allow messages containing new lines to wrap properly

This commit is contained in:
Souryo 2015-07-05 19:06:43 -04:00
parent f88b3921f9
commit 3858397d6e

View file

@ -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();