diff -u b/core/modules/system/templates/item-list--inline.html.twig b/core/modules/system/templates/item-list--inline.html.twig --- b/core/modules/system/templates/item-list--inline.html.twig +++ b/core/modules/system/templates/item-list--inline.html.twig @@ -25,7 +25,7 @@ {%- if items -%} {%- for item in items -%} - {{ loop.first ? '' : ', ' }}{{ item.value }} + {{ item.value }}{{ loop.last ? '' : ', ' }} {%- endfor -%} {%- else -%} {{- empty -}} reverted: --- b/core/themes/seven/templates/item-list--inline.html.twig +++ /dev/null @@ -1,33 +0,0 @@ -{# -/** - * @file - * Default theme implementation for an item list for comma separated inline. - * - * Available variables: - * - items: A list of items. Each item contains: - * - attributes: HTML attributes to be applied to each list item. - * - value: The content of the list element. - * - title: The title of the list. - * - list_type: The tag for list element ("ul" or "ol"). - * - attributes: HTML attributes to be applied to the list. - * - empty: A message to display when there are no items. Allowed value is a - * string or render array. - * - * @see template_preprocess_item_list() - * - * @ingroup themeable - */ -#} -{% if items or empty -%} - {%- if title is not empty -%} -