From 642b9e4d691622242c32288f2c9b222245dd1998 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 23 Mar 2014 19:00:08 -0400 Subject: [PATCH] fixed extra space in new if there is no username --- public/src/forum/topic/postTools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/forum/topic/postTools.js b/public/src/forum/topic/postTools.js index f693ef64f4..66823ea656 100644 --- a/public/src/forum/topic/postTools.js +++ b/public/src/forum/topic/postTools.js @@ -73,7 +73,8 @@ define(['composer'], function(composer) { } } - var username = getUserName(button) + ' '; + var username = getUserName(button); + username += username ? ' ' : ''; composer.newReply(tid, getPid(button), topicName, selectionText.length > 0 ? selectionText + '\n\n' + username : '' + username); }