commit: 42cf522c06080d3b92d7c87d3e00d93d3a7e1a7f Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Tue Jun 7 23:55:35 2022 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Wed Jun 8 00:09:54 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=42cf522c
eshowkw: Fix bug 503366 row alignment issue The first element in the plain_list was a "------" string. This was causing the corner image to throw off the row alignment between the two columns. This fix corrects the alignment, but removes the "------" above the keywords to complete the header seperator line. Gentoo-bug-url: https://bugs.gentoo.org/503366 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> pym/gentoolkit/eshowkw/display_pretty.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py index d58036a..47d18d1 100644 --- a/pym/gentoolkit/eshowkw/display_pretty.py +++ b/pym/gentoolkit/eshowkw/display_pretty.py @@ -1,4 +1,4 @@ -# vim:fileencoding=utf-8 +# vim:fileencoding=utf-8 # Copyright 2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 @@ -29,7 +29,8 @@ def display( # data corner_image = ["".ljust(plain_width) for x in range(rotated_height)] if toplist != "archlist": - corner_image.extend(plain_list) + # DON'T add the first list item which is: "-------", it will throw the row alignment off + corner_image.extend(plain_list[1:]) data_printout = [ "%s%s" % (x, y) for x, y in zip_longest(corner_image, rotated_list, fillvalue=corner_image[0])