Fix a traceback when the whole module name is stripped by a prefix in modindex_common_prefix.

This commit is contained in:
Georg Brandl
2010-01-03 10:27:06 +01:00
parent c4cccb33ea
commit 6049dae619

View File

@@ -415,6 +415,10 @@ class StandaloneHTMLBuilder(Builder):
else:
stripped = ''
# we stripped the whole module name
if not mn:
continue
if fl != mn[0].lower() and mn[0] != '_':
# heading
letter = mn[0].upper()