332: #line 378 "html_weaver.ipk"
333:
334: def echotangle(self,count,data):
335: if self.comments:
336: self._writeline(data)
337: else:
338: self.start_code_line(count)
339: self._writeline(cvt_code(data))
340:
341: def start_code_line(self, count=None):
342: self._ensuremode('PRE')
343: if count:
344: self._write('<SPAN CLASS="LINENO">%6d: </SPAN>' % count)
345: else:
346: self._write('<SPAN CLASS="LINENO"> + </SPAN>')
347:
348: def end_code_line(self): self._writeline()
349:
350: def write_code_fragment(self,fragment, kind=None):
351: if kind:
352: self._write('<SPAN CLASS="'+kind+'">')
353: self._write(cvt_code(fragment))
354: if kind:
355: self._write('</SPAN>')
356: