hledger-flow: ally: fix Description
Descriptions with leading space were falsely included as `Type` tag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user