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