# comment tests # 1. bin/hledger -f - print <<< 2009/01/01 x ; transaction comment 1 ; transaction comment 2 a 1 b >>> 2009/01/01 x ; transaction comment 1 ; transaction comment 2 a 1 b -1 >>>=0 # 2. bin/hledger -f - print <<< 2009/01/01 x a 1 b ; comment line after postings >>> 2009/01/01 x a 1 b -1 >>>=0 # 3. print should preserve comments bin/hledger -f - print <<< 2009/1/1 x ; description comment a 1 ; amount comment ; middle posting comment b ; trailing posting comment ; post-entry comment >>> 2009/01/01 x ; description comment a 1 ; amount comment b -1 >>>=0 # 4. a posting comment should appear in print bin/hledger -f - print <<< 2010/01/01 x a 1 ; comment b -1 >>> 2010/01/01 x a 1 ; comment b -1 >>>2 >>>=0 # 5. a posting comment should not appear in register bin/hledger -f - register <<< 2010/1/1 x a 1 ; comment b >>> 2010/01/01 x a 1 1 b -1 0 >>>2 >>>=0