[Epydoc-commits] SF.net SVN: epydoc: [1438] trunk/epydoc/src/epydoc/docwriter/html_colorize. py
Brought to you by:
edloper
From: <dva...@us...> - 2007-02-06 13:40:22
|
Revision: 1438 http://svn.sourceforge.net/epydoc/?rev=1438&view=rev Author: dvarrazzo Date: 2007-02-06 05:40:13 -0800 (Tue, 06 Feb 2007) Log Message: ----------- - Added an anchor for each source code line The anchor has the form "Ln" where n is the line number without leading 0's. Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html_colorize.py Modified: trunk/epydoc/src/epydoc/docwriter/html_colorize.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2007-02-05 02:37:15 UTC (rev 1437) +++ trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2007-02-06 13:40:13 UTC (rev 1438) @@ -709,7 +709,8 @@ def lineno_to_html(self): template = '%%%ds' % self.linenum_size n = template % self.lineno - return '<tt class="py-lineno">%s</tt>' % n + return '<a name="L%s" /><tt class="py-lineno">%s</tt>' \ + % (self.lineno, n) def colorize(self): """ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |