summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2008-08-01 20:54:21 +0000
committerTed Ross <tross@apache.org>2008-08-01 20:54:21 +0000
commit2511200dc9f3e75d2f6979b33fd94301e9b117cd (patch)
tree0f331ec2732399d824dffa87ff405f75ab2b9b99 /python/qpid
parentb272cc92fa7a4bcd49fb8da50b93bfb4d015fda7 (diff)
downloadqpid-python-2511200dc9f3e75d2f6979b33fd94301e9b117cd.tar.gz
Don't pad out the last column of a table
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/disp.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/python/qpid/disp.py b/python/qpid/disp.py
index 5746a26e51..d697cd0136 100644
--- a/python/qpid/disp.py
+++ b/python/qpid/disp.py
@@ -45,8 +45,9 @@ class Display:
width = cellWidth
colWidth.append (width + self.tableSpacing)
line = line + head
- for i in range (colWidth[col] - len (head)):
- line = line + " "
+ if col < len (heads) - 1:
+ for i in range (colWidth[col] - len (head)):
+ line = line + " "
col = col + 1
print line
line = self.tablePrefix
@@ -60,8 +61,9 @@ class Display:
col = 0
for width in colWidth:
line = line + str (row[col])
- for i in range (width - len (str (row[col]))):
- line = line + " "
+ if col < len (heads) - 1:
+ for i in range (width - len (str (row[col]))):
+ line = line + " "
col = col + 1
print line