diff options
| author | Brian Dolbec <dolsen@gentoo.org> | 2022-06-07 18:16:13 -0700 |
|---|---|---|
| committer | Brian Dolbec <dolsen@gentoo.org> | 2022-06-07 18:16:13 -0700 |
| commit | 4695379c1921865d7763669580ac909ea94db90d (patch) | |
| tree | bc8903ef191e9f50cf9edd8aef0c48027f500672 /pym | |
| parent | 42cf522c06080d3b92d7c87d3e00d93d3a7e1a7f (diff) | |
| download | gentoolkit-4695379c1921865d7763669580ac909ea94db90d.tar.gz | |
eshowkw: Correctly fix row alignment issue bug 503366
Reverts: 42cf522c06080d
Changes the content_length correctly for versionlist output
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
Diffstat (limited to 'pym')
| -rw-r--r-- | pym/gentoolkit/eshowkw/__init__.py | 2 | ||||
| -rw-r--r-- | pym/gentoolkit/eshowkw/display_pretty.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py index ba6c076..c33c47a 100644 --- a/pym/gentoolkit/eshowkw/__init__.py +++ b/pym/gentoolkit/eshowkw/__init__.py @@ -49,7 +49,7 @@ def process_display(package, keywords, dbapi): content.extend(sep) content.extend(keywords.extra) header_length = keywords.length - content_length = portdata.version_length + content_length = portdata.version_length - 1 display(content, header, header_length, content_length, portdata.cp, topper) diff --git a/pym/gentoolkit/eshowkw/display_pretty.py b/pym/gentoolkit/eshowkw/display_pretty.py index 47d18d1..0629d7e 100644 --- a/pym/gentoolkit/eshowkw/display_pretty.py +++ b/pym/gentoolkit/eshowkw/display_pretty.py @@ -29,8 +29,7 @@ def display( # data corner_image = ["".ljust(plain_width) for x in range(rotated_height)] if toplist != "archlist": - # DON'T add the first list item which is: "-------", it will throw the row alignment off - corner_image.extend(plain_list[1:]) + corner_image.extend(plain_list) data_printout = [ "%s%s" % (x, y) for x, y in zip_longest(corner_image, rotated_list, fillvalue=corner_image[0]) |
