summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-09 11:22:42 +0000
committerLaurie Clark-Michalek <bluepeppers@archlinux.us>2011-06-09 11:22:42 +0000
commita7ccb2e66dc09d74f92f6f35844f014ff61320fb (patch)
tree053151900075b0dd97490db78bdf963b6909d2f6
parent2570aaa122cd564b3df24f65b03a6b02e093ce16 (diff)
Corrected order of results when using bottom alignment
-rwxr-xr-xarchey33
1 files changed, 2 insertions, 1 deletions
diff --git a/archey3 b/archey3
index 9887379..5c69c4f 100755
--- a/archey3
+++ b/archey3
@@ -602,7 +602,8 @@ class Archey(object):
if arrangement == "top":
return results
elif arrangement == "bottom":
- return results[::-1]
+ actuall_res = [res for res in results if res]
+ return [""] * (len(results) - len(actuall_res)) + actuall_res
elif arrangement == "center":
actuall_res = [res for res in results if res]
offset = [""] * int((len(results) - len(actuall_res)) / 2)