summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/gentoolkit/eshowkw/__init__.py2
-rw-r--r--pym/gentoolkit/eshowkw/display_pretty.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/gentoolkit/eshowkw/__init__.py b/pym/gentoolkit/eshowkw/__init__.py
index c33c47a..ba6c076 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 - 1
+ content_length = portdata.version_length
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 0629d7e..82fd446 100644
--- a/pym/gentoolkit/eshowkw/display_pretty.py
+++ b/pym/gentoolkit/eshowkw/display_pretty.py
@@ -125,6 +125,6 @@ class string_rotator:
if x.find("+ -") != -1:
x = x.replace(" ", "-")
# strip all chars and remove empty lines
- if not strip or len(x.strip(" |-")) > 0:
+ if not strip or len(x.strip(" |-")) > 0 or '-' in x:
tmp.append(x)
return tmp