src/reportlab/platypus/tables.py
changeset 3432 04c84c2ef968
parent 3368 afa025c34493
child 3442 04096d41cb18
equal deleted inserted replaced
3431:b92783cd5a73 3432:04c84c2ef968
   204         X = [x for x in xrange(x0,x1+1) if V0[x] is None]   #variable candidates
   204         X = [x for x in xrange(x0,x1+1) if V0[x] is None]   #variable candidates
   205         if not X: continue          #something wrong here mate
   205         if not X: continue          #something wrong here mate
   206         v -= t
   206         v -= t
   207         v /= float(len(X))
   207         v /= float(len(X))
   208         for x in X:
   208         for x in X:
   209             M[x] = max(M.get(x,v),v)
   209             M[x] = M.get(x,0)+v
   210     for x,v in M.iteritems():
   210     for x,v in M.iteritems():
   211         V[x] += v
   211         V[x] += v
   212 
   212 
   213 class Table(Flowable):
   213 class Table(Flowable):
   214     def __init__(self, data, colWidths=None, rowHeights=None, style=None,
   214     def __init__(self, data, colWidths=None, rowHeights=None, style=None,