diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-10 20:36:04 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-29 11:00:58 +0300 |
commit | de52e77bc0ef1454f758a6cea8c6a7044ba0b3c7 (patch) | |
tree | ce64ad2b02786937b7d4114c81e3c67360537657 /sphinx/directives | |
parent | 8cfea7beddc26c51be08b41a09db1b96afad3d85 (diff) |
refactor: Set source_info to nodes
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/directives/__init__.py b/sphinx/directives/__init__.py index 8f290d62d..0d9490f31 100644 --- a/sphinx/directives/__init__.py +++ b/sphinx/directives/__init__.py @@ -171,6 +171,7 @@ class ObjectDescription(SphinxDirective): # add a signature node for each signature in the current unit # and add a reference target for it signode = addnodes.desc_signature(sig, '') + self.set_source_info(signode) node.append(signode) try: # name can also be a tuple, e.g. (classname, objname); |