Commits

Georg Brandl committed 5d775f3

#308: allow "double" as alias for "pair" in index entries.

  • Participants
  • Parent commits f00ec62

Comments (0)

Files changed (2)

File sphinx/directives/other.py

     option_spec = {}
 
     indextypes = [
-        'single', 'pair', 'triple',
+        'single', 'pair', 'double', 'triple',
     ]
 
     def run(self):
                 for type in self.indextypes:
                     if entry.startswith(type+':'):
                         value = entry[len(type)+1:].strip()
+                        if type == 'double':
+                            type = 'pair'
                         ne.append((type, value, targetid, value))
                         break
                 # shorthand notation for single entries

File tests/root/markup.txt

 .. index::
    single: entry
    pair: entry; pair
+   double: entry; double
    triple: index; entry; triple
    keyword: with