1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 14:27:23 +00:00

Code formatting

This commit is contained in:
Gregory Rudolph
2019-10-04 15:05:59 -04:00
parent a81755e41a
commit d83fa7f5ae

View File

@ -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