Commits

Anonymous committed 8fde8a3

Fixed keyword's identifier generator

  • Participants
  • Parent commits 164f59b

Comments (0)

Files changed (1)

sphinx/builders/qthelp.py

             #descr = groupdict.get('descr')
             if shortname.endswith('()'):
                 shortname = shortname[:-2]
-            id = '%s.%s' % (id, shortname)
         else:
             id = None
 
         if id:
             item = ' '*12 + '<keyword name="%s" id="%s" ref="%s"/>' % (
-                name, id, ref[1])
+                shortname, id, ref[1])
         else:
-            item = ' '*12 + '<keyword name="%s" ref="%s"/>' % (name, ref[1])
+            item = ' '*12 + '<keyword name="%s" ref="%s"/>' % (
+                shortname, ref[1])
         item.encode('ascii', 'xmlcharrefreplace')
         return item