[Epydoc-commits] SF.net SVN: epydoc: [1603] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
|
From: <ed...@us...> - 2007-09-21 23:17:46
|
Revision: 1603
http://epydoc.svn.sourceforge.net/epydoc/?rev=1603&view=rev
Author: edloper
Date: 2007-09-21 16:17:34 -0700 (Fri, 21 Sep 2007)
Log Message:
-----------
fixed incorrect linking for index terms in functions (sf bug 1791281, debian bug 441368)
Modified Paths:
--------------
trunk/epydoc/src/epydoc/docwriter/html.py
Modified: trunk/epydoc/src/epydoc/docwriter/html.py
===================================================================
--- trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-21 23:11:25 UTC (rev 1602)
+++ trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-21 23:17:34 UTC (rev 1603)
@@ -2865,6 +2865,8 @@
def _terms_from_docstring(self, base_url, container, parsed_docstring):
if parsed_docstring in (None, UNKNOWN): return []
terms = []
+ # Strip any existing anchor off:
+ base_url = re.sub('#.*', '', base_url)
for term in parsed_docstring.index_terms():
anchor = self._term_index_to_anchor(term)
url = '%s#%s' % (base_url, anchor)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|