From 3670a72c315d2e6a0fe625a4f4e7f1af674abebf Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Tue, 26 Dec 2023 05:41:42 +0100 Subject: [PATCH] Fix padding Somehow the %8s for the amount got turned into %6s in commit ef5babd3, which should only have changed the padding for the quantity. --- lib/RevBank/Cart/Entry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RevBank/Cart/Entry.pm b/lib/RevBank/Cart/Entry.pm index 0bacd94..dc55223 100644 --- a/lib/RevBank/Cart/Entry.pm +++ b/lib/RevBank/Cart/Entry.pm @@ -117,7 +117,7 @@ sub as_printable($self) { # numbers. Here, the implied sign is "-", and a "+" is only added for # positive numbers. my $q = $self->{quantity}; - push @s, sprintf "%s%-4s%s" . "%s%6s%s" . " " . "%s%s%s", + push @s, sprintf "%s%-4s%s" . "%s%8s%s" . " " . "%s%s%s", ($self->{highlight} || $self->{highlight_quantity} ? $HI : $LO), ($q > 1 || $self->{highlight_quantity} ? "${q}x" : ""), ($self->{highlight} ? "" : $END),