diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index a2a6ad2b29243c963780796f57caa337d5e9e273..f771b0c9aeeb296ce55756ac505f50281f96b6ca 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -1460,9 +1460,8 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 
 				// Add link to avatar's inspector and delimiter to message.
 				mEditor->appendText(std::string(link_params.link_href), prependNewLineState, link_params);
-				mEditor->appendText(delimiter, prependNewLineState, body_message_params);
-
 				prependNewLineState = false;
+				mEditor->appendText(delimiter, prependNewLineState, body_message_params);
 			}
             else if (teleport_separator)
             {