Hi Benny,
2014-08-30 07:15 Benny Baumann:
If I understood this correctly, this works as documented [1]. The field
is there, only that it tries to use only the necessary space, so for
each line/row it can have different widths.
Pin priority has well known boundaries, so it's easy to specify the
width instead: "%4i". In that case, packages without anything to show
will have the column empty, but still be there with the necessary width
to not produce strange visual effects.
Changing the current behaviour can break existing assumptions and is not
desirable at this point unless there are more compelling cases.
For example, if width of the field is only set for all rows after
calculating the widest that can be possibly needed, it's an unneccesary
extra computation most of the time. And in any case, if any in the list
of packages present in the view (even if folded or out of the visible
area at the moment) has pin priority needing N=4 spaces, it is
equivalent to setting the field width to %4i to start with, so there
would be no advantage in this case.
So marking as +wontfix for the time being.
[1] http://aptitude.alioth.debian.org/doc/en/ch02s05s01.html
"Placing a question mark (?) between the % and the character
identifying the escape causes the column's “basic” width to vary
depending on its content. Note that the resulting columns might not
line up vertically!"
Cheers.