summaryrefslogtreecommitdiff
path: root/qpid/python
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
commit311caa2ede337b3c9e526bb1d79a24c5ff873f44 (patch)
treebf64ded67aa1ca21e5629033452a16b9276ad659 /qpid/python
parent193814ca843ecd85fd1e45cff76996281cb999dc (diff)
downloadqpid-python-311caa2ede337b3c9e526bb1d79a24c5ff873f44.tar.gz
Don't pad out the last column of a table
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@681821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/disp.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/python/qpid/disp.py b/qpid/python/qpid/disp.py
index 5746a26e51..d697cd0136 100644
--- a/qpid/python/qpid/disp.py
+++ b/qpid/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