tests/test_platypus_tables.py
changeset 4269 305766131a79
parent 4264 295afbf0f4c8
child 4330 617ffa6bbdc8
equal deleted inserted replaced
4268:3a78e2dd8450 4269:305766131a79
   492                     ('LINEABOVE',(1,2),(-2,2),1,colors.blue),
   492                     ('LINEABOVE',(1,2),(-2,2),1,colors.blue),
   493                     ('LINEBEFORE',(2,1),(2,-2),1,colors.pink),
   493                     ('LINEBEFORE',(2,1),(2,-2),1,colors.pink),
   494                     ('BACKGROUND', (0, 0), (0, 1), colors.pink),
   494                     ('BACKGROUND', (0, 0), (0, 1), colors.pink),
   495                     ('BACKGROUND', (1, 1), (1, 2), colors.lavender),
   495                     ('BACKGROUND', (1, 1), (1, 2), colors.lavender),
   496                     ('BACKGROUND', (2, 2), (2, 3), colors.orange),
   496                     ('BACKGROUND', (2, 2), (2, 3), colors.orange),
       
   497                     ('TEXTCOLOR',(0,-1),(-2,-1),colors.green),
   497                     ])
   498                     ])
   498     lst.append(Paragraph("Illustrating splits: nosplit", styleSheet['BodyText']))
   499     lst.append(Paragraph("Illustrating splits: nosplit", styleSheet['BodyText']))
   499     lst.append(t)
   500     lst.append(t)
   500     lst.append(Spacer(0,6))
   501     lst.append(Spacer(0,6))
   501     lst.append(Paragraph("Illustrating splits: split(4in,30)", styleSheet['BodyText']))
   502     lst.append(Paragraph("Illustrating splits: split(4in,30)", styleSheet['BodyText']))
   508         lst.append(s)
   509         lst.append(s)
   509         lst.append(Spacer(0,6))
   510         lst.append(Spacer(0,6))
   510     lst.append(Paragraph("Illustrating splits: split(4in,56)", styleSheet['BodyText']))
   511     lst.append(Paragraph("Illustrating splits: split(4in,56)", styleSheet['BodyText']))
   511     lst.append(Spacer(0,6))
   512     lst.append(Spacer(0,6))
   512     for s in t.split(4*inch,56):
   513     for s in t.split(4*inch,56):
       
   514         lst.append(s)
       
   515         lst.append(Spacer(0,6))
       
   516 
       
   517     lst.append(Paragraph("Illustrating splits: repeated split(4in,30)", styleSheet['BodyText']))
       
   518     lst.append(Spacer(0,6))
       
   519     S = t.split(4*inch,30)
       
   520     s = S.pop(-1)
       
   521     S.extend(s.split(4*inch,30))
       
   522     s = S.pop(-1)
       
   523     S.extend(s.split(4*inch,30))
       
   524 
       
   525     for s in S:
   513         lst.append(s)
   526         lst.append(s)
   514         lst.append(Spacer(0,6))
   527         lst.append(Spacer(0,6))
   515 
   528 
   516     lst.append(PageBreak())
   529     lst.append(PageBreak())
   517     data=  [['00', '01', '02', '03', '04'],
   530     data=  [['00', '01', '02', '03', '04'],