parameters: (self, txt)
return_statement: return txt
docstring: Use <ol> for line numbering
docstring_summary: Use <ol> for line numbering
docstring_tokens: Use <ol > for line numbering
function: def _number(self, txt):
          """ Use <ol> for line numbering """
          # Fix Whitespace
          txt = txt.replace('\t', ' '*TAB_LENGTH)
          txt = txt.replace(" "*4, "&nbsp; &nbsp; ")
          txt = txt.replace(" "*3, "&nbsp; &nbsp;")
          txt = txt.replace(" "*2, "&nbsp; ")        
          
          # Add line numbers
          lines = txt.splitlines()
          txt = '<div class="codehilite"><pre><ol>\n'
          for line in lines:
              txt += '\t<li>%s</li>\n'% line
          txt += '</ol></pre></div>\n'
          return txt
function_tokens: def _number ( self , txt ) : # Fix Whitespace txt = txt . replace ( '\t' , ' ' * TAB_LENGTH ) txt = txt . replace ( " " * 4 , "&nbsp; &nbsp; " ) txt = txt . replace ( " " * 3 , "&nbsp; &nbsp;" ) txt = txt . replace ( " " * 2 , "&nbsp; " ) # Add line numbers lines = txt . splitlines ( ) txt = '<div class="codehilite"><pre><ol>\n' for line in lines : txt += '\t<li>%s</li>\n' % line txt += '</ol></pre></div>\n' return txt