mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
autosummary: fix bug introduced in last commit
This commit is contained in:
parent
0b402028f4
commit
2ac809da8b
@ -271,7 +271,12 @@ class Autosummary(Directive):
|
|||||||
vl = ViewList()
|
vl = ViewList()
|
||||||
vl.append(text, '<autosummary>')
|
vl.append(text, '<autosummary>')
|
||||||
self.state.nested_parse(vl, 0, node)
|
self.state.nested_parse(vl, 0, node)
|
||||||
row.append(nodes.entry('', node[0]))
|
try:
|
||||||
|
if isinstance(node[0], nodes.paragraph):
|
||||||
|
node = node[0]
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
row.append(nodes.entry('', node))
|
||||||
body.append(row)
|
body.append(row)
|
||||||
|
|
||||||
for name, sig, summary, real_name in items:
|
for name, sig, summary, real_name in items:
|
||||||
|
Loading…
Reference in New Issue
Block a user