Merge pull request #133 into master

3be93d8 container: plugins: finance: timew_to_timeclock: print all tags (Aaron Fiore)
This commit was merged in pull request #133.
This commit is contained in:
2024-08-29 16:49:59 -07:00

View File

@@ -100,12 +100,24 @@ function main()
break
default:
# All others are considered "real" tags
tags=substr($0, 5)
sub(/=/, ":", tags) # Reconstruct to hledger tag format
# TODO: push to an array for more tags
tag=substr($0, 5)
# Reconstruct to hledger tag format
sub(/=/, ":", tag)
tags[tag]=tag ", "
break
}
} END { printf " " account " " description " ; " comment ", id:" _id ", " tags "\n"}'
}
END {
printf " " account " " description " ; " comment ", id:" _id ", "
for (t in tags)
{
i++
printf t ", "
}
printf "\n"
}'
__format_time "o" "$_end"
echo
done