From a08314efb81cff8b7debb3c8451a8545e405f6f6 Mon Sep 17 00:00:00 2001 From: Castor Gemini Date: Fri, 22 Aug 2025 05:44:42 -0500 Subject: [PATCH] fix(playback): Correct Printf formatting for right-alignment - Fix a bug where the format string for the right-aligned prefix was being printed literally instead of being evaluated. - The user message prefix now displays the timestamp and author correctly. --- prettyFormat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prettyFormat.go b/prettyFormat.go index ab2c845..e0405b3 100644 --- a/prettyFormat.go +++ b/prettyFormat.go @@ -94,7 +94,7 @@ func printLeftAligned(author, timestamp, content string) { } func printRightAligned(author, timestamp, content string) { - prefix := fmt.Sprintf(":(%%s) %%s ✦", timestamp, author) + prefix := fmt.Sprintf("(%s) %s ✦", timestamp, author) // Print the prefix first, right-aligned. fmt.Printf("%*s\n", termWidth, prefix)