From 9f58240c15aef90453719609e3f4b45f110991cf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 16 Jul 2012 11:10:34 -0400 Subject: [PATCH] fix the tags in genindex, add xmlns --- doc/build/templates/base.mako | 8 +++---- doc/build/templates/genindex.mako | 35 +++++++++++++++++-------------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/doc/build/templates/base.mako b/doc/build/templates/base.mako index 89854a1..77650a0 100644 --- a/doc/build/templates/base.mako +++ b/doc/build/templates/base.mako @@ -1,4 +1,4 @@ - + @@ -20,7 +20,7 @@
Home   |   - Trac + Trac   |   Community   |   @@ -41,8 +41,8 @@ <%block name="footer">
- diff --git a/doc/build/templates/genindex.mako b/doc/build/templates/genindex.mako index fce20f2..0a25b67 100644 --- a/doc/build/templates/genindex.mako +++ b/doc/build/templates/genindex.mako @@ -14,7 +14,7 @@ % for i, (key, entries) in enumerate(genindexentries):

${key}

-
+
<% breakat = genindexcounts[i] // 2 @@ -32,30 +32,33 @@ % else: ${entryname|h} % endif + % if subitems: -
- % for subentryname, subentrylinks in subitems: -
${subentryname|h} - % for j, (unknown, link) in enumerate(subentrylinks[1:]): - [${j}] - % endfor -
- % endfor -
- % endif - <% +
+ % for subentryname, subentrylinks in subitems: +
${subentryname|h} + % for j, (unknown, link) in enumerate(subentrylinks[1:]): + [${j}] + % endfor +
+ % endfor +
+ % endif + + <% numitems = numitems + 1 + len(subitems) - %> - % if numcols <2 and numitems > breakat: + %> + % if numcols <2 and numitems > breakat: <% numcols = numcols + 1 %>
-% endif + % endif % endfor -
+
+
% endfor <%def name="sidebarrel()">