hledger-flow: ally: fix Description

Descriptions with leading space were falsely included as `Type` tag
This commit is contained in:
2024-06-06 18:32:22 -07:00
parent 51c78ab5e1
commit 3040fb9e60

View File

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