6.14.5.7. Code Output

Start python section to interscript/weavers/html.py[10 /22 ] Next Prev First Last
   325: #line 371 "html_weaver.ipk"
   326:   # default code line formatting
   327:   def echotangle(self,count,data):
   328:     if self.comments:
   329:       self._writeline(data)
   330:     else:
   331:       self.start_code_line(count)
   332:       self._writeline(cvt_code(data))
   333: 
   334:   def start_code_line(self, count=None):
   335:     self._ensuremode('PRE')
   336:     if count:
   337:       self._write('<SPAN CLASS="LINENO">%6d: </SPAN>' % count)
   338:     else:
   339:       self._write('<SPAN CLASS="LINENO">      + </SPAN>')
   340: 
   341:   def end_code_line(self): self._writeline()
   342: 
   343:   def write_code_fragment(self,fragment, kind=None):
   344:     if kind:
   345:       self._write('<SPAN CLASS="'+kind+'">')
   346:     self._write(cvt_code(fragment))
   347:     if kind:
   348:       self._write('</SPAN>')
   349: 
End python section to interscript/weavers/html.py[10]