Commits

Georg Brandl committed 91d4c37

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

  • Participants
  • Parent commits 88f07bc

Comments (0)

Files changed (1)

File sphinx/builders/html.py

                 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()