From f407ce38117ea147a9bc34708707cff2fa3cc8de Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Tue, 6 Jan 2026 15:48:42 -0800 Subject: [PATCH] container: hledger-flow: discover: credit: remove comma(s) from description --- .../hledger-flow/accounts/discover/discover-shared.bash | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/container/src/hledger-flow/accounts/discover/discover-shared.bash b/container/src/hledger-flow/accounts/discover/discover-shared.bash index fa886f6..7c4f9f9 100755 --- a/container/src/hledger-flow/accounts/discover/discover-shared.bash +++ b/container/src/hledger-flow/accounts/discover/discover-shared.bash @@ -2,7 +2,7 @@ # docker-finance | modern accounting for the power-user # -# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC) +# Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -48,8 +48,10 @@ function parse_credit() printf $1 OFS # Trans. Date printf $2 OFS # Post Date - sub(/%/, "%%", $3) - printf $3 OFS # Description + # Description + gsub(/, /, " ") # may have comma(s) followed by space + sub(/%/, "%%", $3) # remove potential interpretation + printf $3 OFS # Flip the amount signs for proper liabilities accounting direction=($4 > 0 ? "OUT" : "IN")