From 2511200dc9f3e75d2f6979b33fd94301e9b117cd Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 1 Aug 2008 20:54:21 +0000 Subject: 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 --- python/qpid/disp.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'python/qpid') 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 -- cgit v1.2.1