reportlab/platypus/tables.py
changeset 1683 7fa753e4420a
parent 1677 1450177dd19e
child 1699 37fa8717925f
--- a/reportlab/platypus/tables.py	Wed Jul 24 19:22:17 2002 +0000
+++ b/reportlab/platypus/tables.py	Wed Jul 24 19:56:39 2002 +0000
@@ -1,8 +1,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/tables.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/platypus/tables.py,v 1.60 2002/07/17 22:46:24 andy_robinson Exp $
-__version__=''' $Id: tables.py,v 1.60 2002/07/17 22:46:24 andy_robinson Exp $ '''
+#$Header: /tmp/reportlab/reportlab/platypus/tables.py,v 1.61 2002/07/24 19:56:38 andy_robinson Exp $
+__version__=''' $Id: tables.py,v 1.61 2002/07/24 19:56:38 andy_robinson Exp $ '''
 __doc__="""
 Tables are created by passing the constructor a tuple of column widths, a tuple of row heights and the data in
 row order. Drawing of the table can be controlled by using a TableStyle instance. This allows control of the
@@ -225,7 +225,7 @@
             if H is not None: H.append(vh)
             w = max(w,vw)
             t = t + vh + v.getSpaceBefore()+v.getSpaceAfter()
-        return w, t - V[0].getSpaceBefore()-V[-1].getSpaceAfter() 
+        return w, t - V[0].getSpaceBefore()-V[-1].getSpaceAfter()
 
     def _calc_width(self):
 
@@ -263,7 +263,7 @@
             width = width + w
             self._colpositions.append(width)
         #print "final width", width
-        
+
         self._width = width
 
     def _calc_height(self):
@@ -526,8 +526,8 @@
         R0._cr_0(n,self._bkgrndcmds)
 
         if repeatRows:
-            #R1 = Table(data[:repeatRows]+data[n:],self._argW, 
-            R1 = Table(data[:repeatRows]+data[n:],self._colWidths, 
+            #R1 = Table(data[:repeatRows]+data[n:],self._argW,
+            R1 = Table(data[:repeatRows]+data[n:],self._colWidths,
                     self._argH[:repeatRows]+self._argH[n:],
                     repeatRows=repeatRows, repeatCols=repeatCols,
                     splitByRow=splitByRow)
@@ -652,7 +652,7 @@
             for v in vals:
                 draw(x, y, v)
                 y = y-leading
-        
+
 # for text,
 #   drawCentredString(self, x, y, text) where x is center
 #   drawRightString(self, x, y, text) where x is right
@@ -771,7 +771,7 @@
         ('Key Ring', 0,0,0,0,0,0,1,0,0,0,2,13),
         ('Hats', 893, 912, '1,212', 643, 789, 159,
              888, '1,298', 832, 453, '1,344','2,843')
-        )   
+        )
     t = Table(data, colwidths, rowheights)
     """, styleSheet['Code'], dedent=4))
     lst.append(Paragraph("""
@@ -825,7 +825,7 @@
     lst.append(PageBreak())
     lst.append(Paragraph("This is GRID_STYLE\n", styleSheet['BodyText']))
     lst.append(t)
-    
+
     t = Table(data, colwidths, rowheights)
     t.setStyle(BOX_STYLE)
     lst.append(Paragraph("This is BOX_STYLE\n", styleSheet['BodyText']))
@@ -839,7 +839,7 @@
      ('ALIGN', (1,1), (-1,-1), 'RIGHT')]
     )
     """, styleSheet['Code']))
-    
+
     t = Table(data, colwidths, rowheights)
     t.setStyle(LABELED_GRID_STYLE)
     lst.append(Paragraph("This is LABELED_GRID_STYLE\n", styleSheet['BodyText']))
@@ -861,7 +861,7 @@
     )
     """, styleSheet['Code']))
     lst.append(PageBreak())
-    
+
     t = Table(data, colwidths, rowheights)
     t.setStyle(COLORED_GRID_STYLE)
     lst.append(Paragraph("This is COLORED_GRID_STYLE\n", styleSheet['BodyText']))
@@ -878,7 +878,7 @@
      ('ALIGN', (1,1), (-1,-1), 'RIGHT')]
     )
     """, styleSheet['Code']))
-    
+
     t = Table(data, colwidths, rowheights)
     t.setStyle(LIST_STYLE)
     lst.append(Paragraph("This is LIST_STYLE\n", styleSheet['BodyText']))
@@ -894,7 +894,7 @@
      ('ALIGN', (1,1), (-1,-1), 'RIGHT')]
     )
     """, styleSheet['Code']))
-   
+
     t = Table(data, colwidths, rowheights)
     ts = TableStyle(
     [('LINEABOVE', (0,0), (-1,0), 2, colors.green),
@@ -1088,4 +1088,4 @@
     SimpleDocTemplate('tables.pdf', showBoundary=1).build(lst)
 
 if __name__ == '__main__':
-    test()
+    test()
\ No newline at end of file