mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a traceback when the whole module name is stripped by a prefix in modindex_common_prefix.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user