Commits

Georg Brandl committed 84cdba5

Fix references to reST domain items.

  • Participants
  • Parent commits de1b5b3

Comments (0)

Files changed (1)

sphinx/domains/rst.py

             if (objtype, target) in objects:
                 return make_refnode(builder, fromdocname,
                                     objects[objtype, target],
-                                    target, contnode, target)
+                                    objtype + '-' + target,
+                                    contnode, target + ' ' + objtype)
 
     def get_objects(self):
         for (typ, name), docname in self.data['objects'].iteritems():
-            yield name, name, typ, docname, name, 1
+            yield name, name, typ, docname, typ + '-' + name, 1