79: #line 91 "text_weaver.ipk" 80: def print_contents(self, hlevel=2, maxlev=3, *args, **kwds): 81: if hlevel>0: 82: self.head(hlevel,'Contents') 83: toc = self.persistent_frame.get('contents',[]) 84: for level, line, lineno in toc: 85: if level <=maxlev: 86: prefix = ' '*(level*3)+line+' ' 87: suffix = ' '+str(lineno+1) 88: mid = '.' * (self.width - len(prefix) - len(suffix)) 89: self._writeline(prefix + mid + suffix) 90: self.par() 91: