diff --git a/core/modules/system/templates/table.html.twig b/core/modules/system/templates/table.html.twig
index d13e369..5ae1aa5 100644
--- a/core/modules/system/templates/table.html.twig
+++ b/core/modules/system/templates/table.html.twig
@@ -85,9 +85,9 @@
{% for row in rows %}
{% for i in row.cells|keys -%}
- <{{ row.cells[i].header ? 'th' : 'td' }}{{ row.cells[i].attributes }}>
+ <{% if row.cells[i].header %}th{% else %}td{% endif %}{{ row.cells[i].attributes }}>
{{- row.cells[i].data -}}
-
+ {% if row.cells[i].header %}th{% else %}td{% endif %}>
{%- endfor %}
{% endfor %}