Skip to content

Commit

Permalink
Fix rendering of linkspec without name (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Mar 31, 2024
1 parent efc983a commit 98f23f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hdmf_docutils/doctools/renderrst.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ def render_spec_table(spec,
spec_name = depth_str
if spec.get('name', None) is not None:
spec_name += spec.name
elif isinstance(spec, LinkSpec):
spec_name += '<%s>' % RSTDocument.get_reference(
RSTSectionLabelHelper.get_section_label(spec.target_type),
spec.target_type)
elif spec.data_type_def is not None:
spec_name += '<%s>' % spec.data_type_def
elif spec.data_type_inc is not None:
Expand Down

0 comments on commit 98f23f3

Please sign in to comment.