diff options
author | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2009-10-28 16:53:45 +0200 |
---|---|---|
committer | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2009-10-28 16:53:45 +0200 |
commit | 726b00fd18107ef9aebf24b6d56ae8dcbb2003a6 (patch) | |
tree | 3030989a4c8a2c33991c0b19d001e925306add85 /indra/newview/llchathistory.cpp | |
parent | 0e4f48950be95430a1a6052cd41790d807c31216 (diff) | |
parent | 2663bad36b4b02003b4b4c5989c2571c71504cd7 (diff) |
Merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llchathistory.cpp')
-rw-r--r-- | indra/newview/llchathistory.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 512773d215..38e8985188 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -299,12 +299,12 @@ void LLChatHistory::appendWidgetMessage(const LLChat& chat, LLStyle::Params& sty if (mLastFromName == chat.mFromName) { view = getSeparator(); - view_text = " "; + view_text = "\n"; } else { view = getHeader(chat); - view_text = "\n" + chat.mFromName + MESSAGE_USERNAME_DATE_SEPARATOR + formatCurrentTime(); + view_text = chat.mFromName + MESSAGE_USERNAME_DATE_SEPARATOR + formatCurrentTime() + '\n'; } //Prepare the rect for the view LLRect target_rect = getDocumentView()->getRect(); @@ -316,7 +316,8 @@ void LLChatHistory::appendWidgetMessage(const LLChat& chat, LLStyle::Params& sty appendWidget(view, view_text, FALSE, TRUE, mLeftWidgetPad, 0); //Append the text message - appendText(chat.mText, TRUE, style_params); + std::string message = chat.mText + '\n'; + appendText(message, FALSE, style_params); mLastFromName = chat.mFromName; blockUndo(); |