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