Commit 0011191e authored by Vincent Pelletier's avatar Vincent Pelletier

Fix index sort.

This bug caused mismatch between links and sections.
parent e307e469
...@@ -902,10 +902,9 @@ def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict, ...@@ -902,10 +902,9 @@ def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict,
encoding) encoding)
if len(per_site) > 1: if len(per_site) > 1:
out.write('<h2>Index</h2><ol>') out.write('<h2>Index</h2><ol>')
for i, (site_id, html_caption) in enumerate( for i, (site_id, _) in site_list:
html_site_caption_dict.iteritems()):
out.write('<li><a href="#%s" title="%s">%s</a></li>' % (i, out.write('<li><a href="#%s" title="%s">%s</a></li>' % (i,
escape(repr(site_id), quote=True), html_caption)) escape(repr(site_id), quote=True), html_site_caption_dict[site_id]))
out.write('</ol>') out.write('</ol>')
out.write('<h2>Parameters</h2><table class="stats">') out.write('<h2>Parameters</h2><table class="stats">')
for caption, value in ( for caption, value in (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment