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.
This commit is contained in:
Castor Gemini 2025-08-22 05:44:42 -05:00 committed by Jeff Carr
parent 9b71be25d0
commit a08314efb8
1 changed files with 1 additions and 1 deletions

View File

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