From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eshowkw/
Date: Wed, 8 Jun 2022 01:19:18 +0000 (UTC) [thread overview]
Message-ID: <1654650973.4695379c1921865d7763669580ac909ea94db90d.dolsen@gentoo> (raw)
commit: 4695379c1921865d7763669580ac909ea94db90d
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 8 01:16:13 2022 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Jun 8 01:16:13 2022 +0000
URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4695379c
eshowkw: Correctly fix row alignment issue bug 503366
Reverts: 42cf522c06080d
Changes the content_length correctly for versionlist output
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
pym/gentoolkit/eshowkw/__init__.py | 2 +-
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])
next reply other threads:[~2022-06-08 1:19 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 1:19 Brian Dolbec [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-09 1:49 [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eshowkw/ Mike Gilbert
2022-06-08 20:11 Brian Dolbec
2022-06-08 0:12 Brian Dolbec
2020-01-26 15:20 Michał Górny
2019-05-11 20:26 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2018-01-26 23:25 Michał Górny
2016-11-23 23:26 Zac Medico
2016-07-03 17:59 Zac Medico
2016-07-03 17:53 Zac Medico
2016-07-03 4:23 Zac Medico
2016-04-06 17:25 Paul Varner
2016-03-31 22:10 Paul Varner
2016-03-17 21:39 Dirkjan Ochtman
2015-11-19 11:59 Justin Lecher
2015-11-17 10:19 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1654650973.4695379c1921865d7763669580ac909ea94db90d.dolsen@gentoo \
--to=dolsen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox