Not creating ref labels for section posts.

This commit is contained in:
Ahmet Bakan 2014-08-31 15:37:50 -07:00
parent b4981dd87d
commit 9c32f5fb6f

View file

@ -262,10 +262,13 @@ def process_posts(app, doctree):
section_name = section.attributes['ids'][0] section_name = section.attributes['ids'][0]
post_name = docname + '#' + section_name post_name = docname + '#' + section_name
label += '-' + section_name label += '-' + section_name
else:
# create a reference for the post # create a reference for the post
# if it is posting the document
# ! this does not work for sections
app.env.domains['std'].data['labels'][label] = (docname, label, title) app.env.domains['std'].data['labels'][label] = (docname, label, title)
section_copy = section.deepcopy() section_copy = section.deepcopy()
# multiple posting may result having post nodes # multiple posting may result having post nodes
for nn in section_copy.traverse(PostNode): for nn in section_copy.traverse(PostNode):