diff --git a/src/docs/templates/slot.md.jinja2 b/src/docs/templates/slot.md.jinja2 index b3515f2..c185715 100644 --- a/src/docs/templates/slot.md.jinja2 +++ b/src/docs/templates/slot.md.jinja2 @@ -27,9 +27,8 @@ The obligation or cardinality can be overridden when used by classes. Check the Mixin: {{ element.mixin }} {% endif -%} -{% if element.comments %} ## Usage Notes - +{% if element.comments %} {% set comments = element.comments | join('') %} {% set comments_lines = comments.split('\n') %} @@ -44,6 +43,8 @@ Mixin: {{ element.mixin }} {{ line }} {% endif %} {% endfor %} +{% else %} +_Usage notes still to be provided._ {% endif %} {% if schemaview.slot_parents(element.name) or schemaview.slot_children(element.name, mixins=False) %}