diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-08-30 16:13:11 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-08-30 16:13:11 +0900 |
commit | 45cfb42864c24bb1aad671bfdb8287877efac3e5 (patch) | |
tree | 33b11b9a73e2487b7d31b8fd602c6f854d723d6e /sphinx/transforms.py | |
parent | f99e077dd4a7b0550b4d034d6176664064f4fcae (diff) | |
download | sphinx-git-45cfb42864c24bb1aad671bfdb8287877efac3e5.tar.gz |
Add source comment to explain why is the second argument (msgnode) not needed. Refs #1300, 8d51df20d4
Diffstat (limited to 'sphinx/transforms.py')
-rw-r--r-- | sphinx/transforms.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/transforms.py b/sphinx/transforms.py index 8919d6ce9..0e103acfb 100644 --- a/sphinx/transforms.py +++ b/sphinx/transforms.py @@ -243,6 +243,12 @@ class Locale(Transform): self.document.ids.pop(_id, None) # re-entry with new named section node. + # + # Note: msgnode that is a second parameter of the + # `note_implicit_target` is not necessary here because + # section_node has been noted previously on rst parsing by + # `docutils.parsers.rst.states.RSTState.new_subsection()` + # and already has `system_message` if needed. self.document.note_implicit_target(section_node) # replace target's refname to new target name |