From 93589b15b0081901b56b819d60816938c7420eff Mon Sep 17 00:00:00 2001 From: Phil S Date: Sun, 20 Mar 2022 05:08:02 +0000 Subject: [PATCH] Chat formatting (#16) Changed chat format to have the text on a separate line instead of inline with datetime and user. Co-authored-by: Phil S Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/16 Co-authored-by: Phil S. Co-committed-by: Phil S. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 4f526af..c147209 100644 --- a/client.go +++ b/client.go @@ -102,7 +102,7 @@ func (cc *chatClient) updateChatBox(inCh <-chan string, app *tview.Application, cc.mu.RLock() app.QueueUpdateDraw(func() { fmt.Fprintf(chatBox, - "[#%s]%s [#%x]%-30s [#%s]%s\n", + "[#%s]%s [#%x]%s\n[#%s]%s\n\n", cc.palette["date"], s.Timestamp.DateTime().Local().Format(dateTimeFormat), getUserColor(s.User.String()).Hex(),