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)
|
if (NR<2 || $1 !~ global_year)
|
||||||
next
|
next
|
||||||
|
|
||||||
# Description may have comma followed by space
|
# `Description` cleanup
|
||||||
# TODO: what about description ending in comma?...
|
sub(/^ /, "", $5) # may have an empty space in front of line
|
||||||
gsub(/, /, " - ");
|
gsub(/, /, " - ") # may have (multiple) commas followed by space
|
||||||
|
|
||||||
printf $1 OFS # date
|
printf $1 OFS # date
|
||||||
printf $2 OFS # time
|
printf $2 OFS # time
|
||||||
|
|||||||
Reference in New Issue
Block a user