qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tr...@apache.org
Subject svn commit: r681821 - /incubator/qpid/trunk/qpid/python/qpid/disp.py
Date Fri, 01 Aug 2008 20:54:22 GMT
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
 



Mime
View raw message