mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-03-22 11:07:22 +00:00
Code formatting
This commit is contained in:
1
main.go
1
main.go
@ -115,6 +115,7 @@ func formatOutput(api keybase.ChatAPI) string {
|
||||
ret = strings.Replace(ret, "$ID", fmt.Sprintf("%d", api.Msg.ID), 1)
|
||||
ret = strings.Replace(ret, "$DATE", fmt.Sprintf("%s", tm.Format(dateFormat)), 1)
|
||||
ret = strings.Replace(ret, "$TIME", fmt.Sprintf("%s", tm.Format(timeFormat)), 1)
|
||||
ret = strings.Replace(ret, "```", fmt.Sprintf("\n<code>\n"), 10)
|
||||
}
|
||||
if api.Msg.Content.Type == "attachment" {
|
||||
ret = outputFormat
|
||||
|
||||
Reference in New Issue
Block a user