Attached is a patch from upstream's Subversion for this fix.

KEN

-- 
Kenneth J. Pronovici <[EMAIL PROTECTED]>
Index: epydoc/docwriter/html.py
===================================================================
--- epydoc/docwriter/html.py	(revision 1602)
+++ epydoc/docwriter/html.py	(revision 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)

Attachment: signature.asc
Description: Digital signature

Reply via email to