311: #line 357 "html_weaver.ipk"
312:
313: def echotangle(self,count,data):
314: if self.comments:
315: self._writeline(data)
316: else:
317: self.start_code_line(count)
318: self._writeline(cvt_code(data))
319:
320: def start_code_line(self, count=None):
321: self._ensuremode('PRE')
322: if count:
323: self._write('<SPAN CLASS="LINENO">%6d: </SPAN>' % count)
324: else:
325: self._write('<SPAN CLASS="LINENO"> + </SPAN>')
326:
327: def end_code_line(self): self._writeline()
328:
329: def write_code_fragment(self,fragment, kind=None):
330: if kind:
331: self._write('<SPAN CLASS="'+kind+'">')
332: self._write(cvt_code(fragment))
333: if kind:
334: self._write('</SPAN>')
335: