1 |
commit: 4695379c1921865d7763669580ac909ea94db90d |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 8 01:16:13 2022 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 8 01:16:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4695379c |
7 |
|
8 |
eshowkw: Correctly fix row alignment issue bug 503366 |
9 |
|
10 |
Reverts: 42cf522c06080d |
11 |
Changes the content_length correctly for versionlist output |
12 |
|
13 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
14 |
|
15 |
pym/gentoolkit/eshowkw/__init__.py | 2 +- |
16 |
pym/gentoolkit/eshowkw/display_pretty.py | 3 +-- |
17 |
2 files changed, 2 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py |
20 |
index ba6c076..c33c47a 100644 |
21 |
--- a/pym/gentoolkit/eshowkw/__init__.py |
22 |
+++ b/pym/gentoolkit/eshowkw/__init__.py |
23 |
@@ -49,7 +49,7 @@ def process_display(package, keywords, dbapi): |
24 |
content.extend(sep) |
25 |
content.extend(keywords.extra) |
26 |
header_length = keywords.length |
27 |
- content_length = portdata.version_length |
28 |
+ content_length = portdata.version_length - 1 |
29 |
display(content, header, header_length, content_length, portdata.cp, topper) |
30 |
|
31 |
|
32 |
|
33 |
diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py |
34 |
index 47d18d1..0629d7e 100644 |
35 |
--- a/pym/gentoolkit/eshowkw/display_pretty.py |
36 |
+++ b/pym/gentoolkit/eshowkw/display_pretty.py |
37 |
@@ -29,8 +29,7 @@ def display( |
38 |
# data |
39 |
corner_image = ["".ljust(plain_width) for x in range(rotated_height)] |
40 |
if toplist != "archlist": |
41 |
- # DON'T add the first list item which is: "-------", it will throw the row alignment off |
42 |
- corner_image.extend(plain_list[1:]) |
43 |
+ corner_image.extend(plain_list) |
44 |
data_printout = [ |
45 |
"%s%s" % (x, y) |
46 |
for x, y in zip_longest(corner_image, rotated_list, fillvalue=corner_image[0]) |