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,9 +262,12 @@ def process_posts(app, doctree):
section_name = section.attributes['ids'][0]
post_name = docname + '#' + section_name
label += '-' + section_name
else:
# 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)
# create a reference for the post
app.env.domains['std'].data['labels'][label] = (docname, label, title)
section_copy = section.deepcopy()
# multiple posting may result having post nodes