1 Combining Comments and Tags
Robert Nielsen edited this page 2018-03-07 19:42:51 -05:00

hledger tags go inside a comment, but the tag should come at the end of the comment.

For example, you make a purchase of an inflatable turkey and want to include that fact in a comment. However, in the same line you also want to tag it as holiday:Thanksgiving. The correct order to do this is:

2016/09/26 ACME Holiday Supplies ; 
  Expenses:Entertainment    $58.99 ; inflatable turkey holiday:Thanksgiving
  Liabilities:CreditCard

If you put the comments after the tag, they become part of the tag value, and this can cause unwanted results.