summaryrefslogtreecommitdiff
path: root/sphinx/domains/std.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-12 12:19:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-12 12:19:12 +0900
commitd170862866a576cf342d27074d009e869e3670c4 (patch)
tree141ea08b7d9264a04bbe9840c7a74fc3456e95a4 /sphinx/domains/std.py
parentbb8dcb5ceea378368084567354f70fffcd5d5f42 (diff)
downloadsphinx-git-d170862866a576cf342d27074d009e869e3670c4.tar.gz
Fix #3328: Could not refer rubric implicitly
Diffstat (limited to 'sphinx/domains/std.py')
-rw-r--r--sphinx/domains/std.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/std.py b/sphinx/domains/std.py
index 55d0ec1ef..3c6f98315 100644
--- a/sphinx/domains/std.py
+++ b/sphinx/domains/std.py
@@ -566,7 +566,7 @@ class StandardDomain(Domain):
env.warn_node('duplicate label %s, ' % name + 'other instance '
'in ' + env.doc2path(labels[name][0]), node)
anonlabels[name] = docname, labelid
- if node.tagname == 'section':
+ if node.tagname in ('section', 'rubric'):
sectname = clean_astext(node[0]) # node[0] == title node
elif self.is_enumerable_node(node):
sectname = self.get_numfig_title(node)