6.14.6.7. Code Output

Comienzo python section to interscript/weavers/xml.py[10 /22 ] Siguiente Previo Primero Ăšltimo
   329: #line 361 "xml_weaver.ipk"
   330:   # default code line formatting
   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: 
End python section to interscript/weavers/xml.py[10]