ledger / ledger

Double-entry accounting system with a command-line reporting interface
https://www.ledger-cli.org
Other
5.27k stars 500 forks source link

Padding formatting commands does not ignore invisible characters (BZ#606) #606

Open tbm opened 12 years ago

tbm commented 12 years ago

Note: the issue was created automatically with bugzilla2github

Bugzilla bug ID: BZ#606 From: Craig Earls (@enderw88)

tbm commented 12 years ago

Comment author: Craig Earls (@enderw88)

The formatting command to padd arguments counts non-printing characters when it pads. The following formatting command highlight a field in blue on the existence of a tag. The blue output is padded by 9 characters less than the non-ansified branch

%-50((note=~/Arrived/? ansify_if(tag('Gift'),blue) : tag('Gift') ))