summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-05 22:16:31 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-05 22:16:31 -0700
commit0db6b43feed351aaa47554f51bf46aa18a5009cc (patch)
treee480f0e09aa4a88ebb98bef808864bdc13f90043
parent3acce846c43eed7feefd3ab9c47dd172a83ae1db (diff)
downloadportage-0db6b43feed351aaa47554f51bf46aa18a5009cc.tar.gz
portage-0db6b43feed351aaa47554f51bf46aa18a5009cc.tar.bz2
portage-0db6b43feed351aaa47554f51bf46aa18a5009cc.zip
portageq: fix short help display for leading \n
-rwxr-xr-xbin/portageq2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/portageq b/bin/portageq
index fa3a0d019..57a7c3910 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -731,7 +731,7 @@ def usage(argv):
print("")
continue
- lines = doc.split("\n")
+ lines = doc.lstrip("\n").split("\n")
print(" " + name + " " + lines[0].strip())
if (len(sys.argv) > 1):
if (not help_mode):