]> err.no Git - dak/commit
dak: ls: Calculate optimal column sizes
authorJulian Andres Klode <jak@debian.org>
Sun, 21 Apr 2013 00:59:25 +0000 (00:59 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Sun, 21 Apr 2013 01:00:36 +0000 (01:00 +0000)
commit6c2a6a0c45a82cd77fbcf705be3c13782d950f34
tree6c993314671f49a18a3e77145fef03fd4d42a337
parent74b6e3ea0862764fab4b89616d750b0d1bda9978
dak: ls: Calculate optimal column sizes

If a package name is longer than 10 characters, or a version
longer than 13 characters, columns had different widths in
different rows. By calculating the maximum column size and
using that instead of hard-coded values, we have a nice
table again (Closes: #705289).
dak/ls.py