#172: The `obj` role now links to modules as promised.

This commit is contained in:
Georg Brandl
2009-05-17 12:58:48 +02:00
parent f335757a41
commit 61146192c7
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
Release 0.6.2 (in development)
==============================
* #172: The ``obj`` role now links to modules as promised.
* #19: Tables now can have a "longtable" class, in order to get
correctly broken into pages in LaTeX output.

View File

@@ -1270,7 +1270,8 @@ class BuildEnvironment:
newnode['refuri'] = builder.get_relative_uri(
fromdocname, docname, typ) + '#' + labelid
newnode.append(contnode)
elif typ == 'mod':
elif typ == 'mod' or \
typ == 'obj' and target in self.modules:
docname, synopsis, platform, deprecated = \
self.modules.get(target, ('','','', ''))
if not docname: