6.4.5.7. Code Output

Start python section to interscript/weavers/html.py[10 /22 ] Next Prev Last
   311: #line 357 "html_weaver.ipk"
   312:   # default code line formatting
   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: 
End python section to interscript/weavers/html.py[10]