Formatting

One more character so values >= 100.00 don't mess up the columns, at
least up to 999.99. I hope nobody's actually parsing the logs with fixed
character offsets.
This commit is contained in:
Juerd Waalboer 2022-12-13 21:39:57 +01:00
parent a2e0512ff5
commit b9c91c0054

View file

@ -117,7 +117,7 @@ sub as_loggable($self) {
: sprintf("%s [%sx %s]", $_->{description}, $quantity, $_->{amount}->abs);
push @s, sprintf(
"%-12s %4s %3d %5s # %s",
"%-12s %4s %3d %6s # %s",
$_->{user},
($total->cents > 0 ? 'GAIN' : $total->cents < 0 ? 'LOSE' : '===='),
$quantity,