reportlab/platypus/paraparser.py
changeset 2694 dd0ea6474ea0
parent 2693 3c61a57aecd1
child 2742 8edd54153201
equal deleted inserted replaced
2693:3c61a57aecd1 2694:dd0ea6474ea0
   610             return
   610             return
   611         elif attr.has_key('id'):
   611         elif attr.has_key('id'):
   612             id = attr['id']
   612             id = attr['id']
   613         else:
   613         else:
   614             id = None
   614             id = None
   615         output = self._seq.nextf(id)
   615         increment = attr.get('inc', None)
       
   616         if not increment:
       
   617             output = self._seq.nextf(id)
       
   618         else:
       
   619             #accepts "no" for do not increment, or an integer.
       
   620             #thus, 0 and 1 increment by the right amounts.
       
   621             if increment.lower() == 'no':
       
   622                 output = self._seq.thisf(id)
       
   623             else:
       
   624                 incr = int(increment)
       
   625                 output = self._seq.thisf(id)
       
   626                 self._seq.reset(id, self._seq._this() + incr)
   616         self.handle_data(output)
   627         self.handle_data(output)
   617 
   628 
   618     def end_seq(self):
   629     def end_seq(self):
   619         pass
   630         pass
   620 
   631