Skip to content

Commit

Permalink
Merge branch 'file-section-fix' of https://github.com/inconstxpr/breathe
Browse files Browse the repository at this point in the history
  • Loading branch information
vermeeren committed Jan 20, 2021
2 parents b6a7029 + b2c8fea commit cec3752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions breathe/renderer/sphinxrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,13 +1165,13 @@ def render_derivedcompoundref(node):

# Get all sub sections
for sectiondef in node.sectiondef:
kind = sectiondef.kind
if section_order is not None and kind not in section_order:
continue
child_nodes = self.render(sectiondef)
if not child_nodes:
# Skip empty section
continue
kind = sectiondef.kind
if section_order is not None and kind not in section_order:
continue
rst_node = nodes.container(classes=['breathe-sectiondef'])
rst_node.document = self.state.document
rst_node['objtype'] = kind
Expand Down

0 comments on commit cec3752

Please sign in to comment.