Skip to content

Commit

Permalink
Merge pull request #47 from co-cddo/issue-46/usage-note-heading
Browse files Browse the repository at this point in the history
Fix #46 heading only displays if there is content
  • Loading branch information
Alasdair Gray authored Oct 17, 2023
2 parents 298fe2d + c406fc9 commit 7aa3381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/docs/templates/slot.md.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Regex pattern: {{ '`' }}{{ element.pattern }}{{ '`' }}
Mixin: {{ element.mixin }}
{% endif -%}

{% if element.comments %}
## Usage Notes

{% set comments = element.comments | join('') %}
Expand All @@ -61,6 +62,7 @@ Mixin: {{ element.mixin }}
{{ line }}
{% endif %}
{% endfor %}
{% endif %}

{% if schemaview.slot_parents(element.name) or schemaview.slot_children(element.name, mixins=False) %}

Expand Down

0 comments on commit 7aa3381

Please sign in to comment.