Skip to content

Commit b550333

Browse files
committed
Unicode-proof index generation
1 parent 9210e40 commit b550333

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Christopher Gateley
55
Jack Miller
66
Morgan Goose
77
Nick Fitzgerald
8+
Steffen Kampmann
89
Zach Smith
910
goosemo
1011
khamidou

pycco/generate_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ def generate_tree_html(tree):
5050
items = []
5151
for node, subtree in sorted(compat_items(tree)):
5252
if 'entry' in subtree:
53-
html = '<li><a href="{}">{}</a></li>'.format(subtree['entry']['relpath'], node)
53+
html = u'<li><a href="{}">{}</a></li>'.format(subtree['entry']['relpath'], node)
5454
else:
55-
html = '<dl><dt>{}</dt><dd><ul>{}</ul></dd></dl>'.format(node, generate_tree_html(subtree))
55+
html = u'<dl><dt>{}</dt><dd><ul>{}</ul></dd></dl>'.format(node, generate_tree_html(subtree))
5656

5757
items.append(html)
5858

0 commit comments

Comments
 (0)