Commits

Mike Bayer committed 1f59ea3

fix the genindex, [ticket:2366]

Comments (0)

Files changed (1)

doc/build/templates/genindex.mako

 
 <dt>
     % if links:
-        <a href="${links[0]}">${entryname|h}</a>
-        % for link in links[1:]:
+        <a href="${links[0][1]}">${entryname|h}</a>
+        % for unknown, link in links[1:]:
             , <a href="${link}">[${i}]</a>
         % endfor
     % else:
     % if subitems:
   <dd><dl>
     % for subentryname, subentrylinks in subitems:
-    <dt><a href="${subentrylinks[0]}">${subentryname|h}</a>
-            % for j, link in enumerate(subentrylinks[1:]):
+    <dt><a href="${subentrylinks[0][1]}">${subentryname|h}</a>
+            % for j, (unknown, link) in enumerate(subentrylinks[1:]):
                 <a href="${link}">[${j}]</a>
             % endfor
     </dt>