[Epydoc-commits] SF.net SVN: epydoc: [1256] trunk/epydoc/src/epydoc/docwriter/html_colorize.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 08:12:25
|
Revision: 1256 Author: edloper Date: 2006-08-21 01:12:21 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1256&view=rev Log Message: ----------- - Fixed two javascript bugs 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 2006-08-21 08:11:42 UTC (rev 1255) +++ trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2006-08-21 08:12:21 UTC (rev 1256) @@ -339,8 +339,8 @@ if (elt) { elt.style.display = "block"; - var indent = elt.indent; - var pad = elt.pad; + var indent = elt.getAttribute("indent"); + var pad = elt.getAttribute("pad"); var s = "<span class=\'py-lineno\'>"; for (var i=0; i<pad.length; i++) { s += " " } s += "</span>"; @@ -393,7 +393,7 @@ function expandto(href) { var start = href.indexOf("#")+1; - if (start != 0) { + if (start != 0 && start != href.length) { if (href.substring(start, href.length) != "-") { collapse_all(4); pos = href.indexOf(".", start); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |