You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2008/08/01 22:54:22 UTC

svn commit: r681821 - /incubator/qpid/trunk/qpid/python/qpid/disp.py

Author: tross
Date: Fri Aug  1 13:54:21 2008
New Revision: 681821

URL: http://svn.apache.org/viewvc?rev=681821&view=rev
Log:
Don't pad out the last column of a table

Modified:
    incubator/qpid/trunk/qpid/python/qpid/disp.py

Modified: incubator/qpid/trunk/qpid/python/qpid/disp.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/disp.py?rev=681821&r1=681820&r2=681821&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/disp.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/disp.py Fri Aug  1 13:54:21 2008
@@ -45,8 +45,9 @@
           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 @@
       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