diff options
| author | Castor Gemini <[email protected]> | 2025-08-22 05:44:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-22 05:44:42 -0500 |
| commit | a08314efb81cff8b7debb3c8451a8545e405f6f6 (patch) | |
| tree | 6c2743143105c9ba31a7f2f87e46c53d1ad2fdf0 /prettyFormat.go | |
| parent | 9b71be25d0ce5e9f30a1e1193dc5fa88f8402a2e (diff) | |
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.
Diffstat (limited to 'prettyFormat.go')
| -rw-r--r-- | prettyFormat.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
