summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
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