405: #line 424 "text_weaver.ipk" 406: def begin_keyed_list(self): 407: self.margin = self.margin + 4 408: 409: def begin_numbered_list(self,start=1): 410: self.margin = self.margin + 4 411: self.numbered_list_stack.append(start) 412: 413: def begin_bullet_list(self): 414: self.margin = self.margin + 4 415: 416: def end_keyed_list(self): 417: self.par() 418: self.margin = self.margin - 4 419: 420: def end_numbered_list(self): 421: self.par() 422: self.margin = self.margin - 4 423: del self.numbered_list_stack[-1] 424: 425: def end_bullet_list(self): 426: self.par() 427: self.margin = self.margin - 4 428: 429: def begin_keyed_list_item(self,key): 430: self.par() 431: self._goto(self.margin-4) 432: self._write(key+' ') 433: self._goto(self.margin) 434: 435: def begin_numbered_list_item(self): 436: self.par() 437: key = "%2d. " % self.numbered_list_stack[-1] 438: self.numbered_list_stack[-1] = self.numbered_list_stack[-1] + 1 439: self._goto(self.margin-4) 440: self._write(key) 441: 442: def begin_bullet_list_item(self): 443: self.par() 444: key = '* ' 445: self._goto(0) 446: self._goto(self.margin-4) 447: self._write(key) 448: