Skip to content

Commit

Permalink
Merge branch 'fix_retval' of https://github.com/jakobandersen/breathe
Browse files Browse the repository at this point in the history
  • Loading branch information
vermeeren committed May 2, 2021
2 parents 8e45b5e + 84cddee commit 132eed2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2137,10 +2137,12 @@ def visit_docparamlist(self, node) -> List[Node]:
nodes.strong(dir, dir),
nodes.Text(' ', ' ')
]

name = nodes.field_name(
'', nodes.Text(fieldListName[node.kind] + ' '),
*nameNodes)
# it seems that Sphinx expects the name to be a single node,
# so let's make it that
txt = fieldListName[node.kind] + ' '
for n in nameNodes:
txt += n.astext()
name = nodes.field_name('', nodes.Text(txt))
bodyNodes = self.render_optional(item.parameterdescription)
# TODO: is it correct that bodyNodes is either empty or a single paragraph?
assert len(bodyNodes) <= 1, bodyNodes
Expand Down

0 comments on commit 132eed2

Please sign in to comment.