1. Robert Lehmann
  2. sphinx-sidebar

Commits

Georg Brandl  committed cfeb5ba

Allow empty accesskey to avoid giving an access key.

  • Participants
  • Parent commits 0bc3050
  • Branches default

Comments (0)

Files changed (1)

File sphinx/jinja2glue.py

View file
  • Ignore whitespace
     """Helper to output each access key only once."""
     if '_accesskeys' not in context:
         context.vars['_accesskeys'] = {}
-    if key not in context.vars['_accesskeys']:
+    if key and key not in context.vars['_accesskeys']:
         context.vars['_accesskeys'][key] = 1
         return 'accesskey="%s"' % key
     return ''