diff --git a/core/modules/system/templates/item-list.html.twig b/core/modules/system/templates/item-list.html.twig index f8dab50..83066ac 100644 --- a/core/modules/system/templates/item-list.html.twig +++ b/core/modules/system/templates/item-list.html.twig @@ -18,27 +18,26 @@ * @ingroup themeable */ #} -{% spaceless %} - {% if items %} -
- {% if title -%} -

{{ title }}

- {% endif -%} - {%- if list_type == 'ul' -%} - - {%- else -%} - - {%- endif %} - {%- for item in items -%} - {{ item }} - {%- endfor -%} - {%- if list_type == 'ul' -%} - - {%- else -%} - - {%- endif %} -
- {% elseif empty %} - {{ empty }} - {% endif %} -{% endspaceless %} +{%- if items or empty -%} +
+ {%- if title -%} +

{{ title }}

+ {%- endif -%} + {%- if items -%} + {%- if list_type == 'ul' -%} + + {%- else -%} + + {%- endif %} + {%- for item in items -%} + {{ item }} + {%- endfor -%} + {%- if list_type == 'ul' -%} + + {%- else -%} + + {%- endif %} + {%- endif -%} + {{- empty -}} +
+{%- endif %}