summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-06-07 16:55:35 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-06-07 17:09:54 -0700
commit42cf522c06080d3b92d7c87d3e00d93d3a7e1a7f (patch)
treeac100656a1ee71bc71e3e12f3a9b0b6e2528aaaa /pym
parentb3251b763901ec5a5d7690fd8ec2885629104ee2 (diff)
downloadgentoolkit-42cf522c06080d3b92d7c87d3e00d93d3a7e1a7f.tar.gz
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@gentoo.org>
Diffstat (limited to 'pym')
-rw-r--r--pym/gentoolkit/eshowkw/display_pretty.py5
1 files 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])