Add source comment to explain why is the second argument (msgnode) not needed. Refs #1300, 8d51df20d4

This commit is contained in:
Takayuki Shimizukawa 2014-08-30 16:13:11 +09:00
parent f99e077dd4
commit 45cfb42864

View File

@ -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