mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do not throw away existing section ids.
This commit is contained in:
parent
ea20752386
commit
044f61ddb1
@ -122,7 +122,7 @@ class MoveModuleTargets(Transform):
|
|||||||
if node['ids'][0].startswith('module-') and \
|
if node['ids'][0].startswith('module-') and \
|
||||||
node.parent.__class__ is nodes.section and \
|
node.parent.__class__ is nodes.section and \
|
||||||
node.has_key('ismod'):
|
node.has_key('ismod'):
|
||||||
node.parent['ids'] = node['ids']
|
node.parent['ids'][0:0] = node['ids']
|
||||||
node.parent.remove(node)
|
node.parent.remove(node)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user