From f1064422999c01e917575105d25dc04ab16cb113 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 24 Oct 2023 06:20:57 -0600 Subject: [PATCH] progression --- ledger/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ledger/file.go b/ledger/file.go index 19000da..d8e8c04 100644 --- a/ledger/file.go +++ b/ledger/file.go @@ -5,6 +5,7 @@ import ( "fmt" "io" "os" + "strings" ) type File string @@ -140,5 +141,5 @@ func readTransactionDescription(r io.Reader) (string, error) { } result = append(result, firstByte[0]) } - return string(result), nil + return strings.TrimSpace(string(result)), nil }