reportlab/platypus/doctemplate.py
changeset 2664 c9faa3a99e93
parent 2661 e179247ffea3
child 2666 a72c25280be2
equal deleted inserted replaced
2663:927cc273c5a5 2664:c9faa3a99e93
   584         "implements keepWithNext"
   584         "implements keepWithNext"
   585         i = 0
   585         i = 0
   586         n = len(flowables)
   586         n = len(flowables)
   587         while i<n and flowables[i].getKeepWithNext(): i += 1
   587         while i<n and flowables[i].getKeepWithNext(): i += 1
   588         if i:
   588         if i:
   589             if not getattr(flowables[i],'locChanger',None): i += 1
   589             if i<n and not getattr(flowables[i],'locChanger',None): i += 1
   590             K = KeepTogether(flowables[:i])
   590             K = KeepTogether(flowables[:i])
   591             for f in K._content:
   591             for f in K._content:
   592                 f.keepWithNext = 0
   592                 f.keepWithNext = 0
   593             del flowables[:i]
   593             del flowables[:i]
   594             flowables.insert(0,K)
   594             flowables.insert(0,K)