diff --git a/container/src/hledger-flow/accounts/ally/ally-shared.bash b/container/src/hledger-flow/accounts/ally/ally-shared.bash index 20fbeae..f9c98fd 100755 --- a/container/src/hledger-flow/accounts/ally/ally-shared.bash +++ b/container/src/hledger-flow/accounts/ally/ally-shared.bash @@ -43,9 +43,9 @@ function parse() if (NR<2 || $1 !~ global_year) next - # Description may have comma followed by space - # TODO: what about description ending in comma?... - gsub(/, /, " - "); + # `Description` cleanup + sub(/^ /, "", $5) # may have an empty space in front of line + gsub(/, /, " - ") # may have (multiple) commas followed by space printf $1 OFS # date printf $2 OFS # time