diff --git a/core/modules/system/templates/links.html.twig b/core/modules/system/templates/links.html.twig
index a56880a..00497fd 100644
--- a/core/modules/system/templates/links.html.twig
+++ b/core/modules/system/templates/links.html.twig
@@ -35,23 +35,23 @@
#}
{% if links %}
{% if heading %}
- {%- if heading.level -%}
+ {% if heading.level %}
<{{ heading.level }}{{ heading.attributes }}>{{ heading.text }}{{ heading.level }}>
- {%- else -%}
+ {% else %}
{{ heading.text }}
- {%- endif -%}
- {%- endif -%}
+ {% endif %}
+ {% endif %}
- {%- for item in links -%}
+ {% for item in links %}
-
- {%- if item.link -%}
+ {% if item.link %}
{{ item.link }}
- {%- elseif item.text_attributes -%}
+ {% elseif item.text_attributes %}
{{ item.text }}
- {%- else -%}
- {{- item.text -}}
- {%- endif -%}
+ {% else %}
+ {{ item.text }}
+ {% endif %}
- {%- endfor -%}
+ {% endfor %}
-{%- endif -%}
+{% endif %}
diff --git a/core/themes/classy/templates/navigation/links.html.twig b/core/themes/classy/templates/navigation/links.html.twig
index b1395a7..680d39e 100644
--- a/core/themes/classy/templates/navigation/links.html.twig
+++ b/core/themes/classy/templates/navigation/links.html.twig
@@ -33,23 +33,23 @@
#}
{% if links %}
{% if heading %}
- {%- if heading.level -%}
- <{{ heading.level }}{{ heading.attributes }}>{{- heading.text }}{{ heading.level }}>
- {%- else -%}
- {{- heading.text }}
- {%- endif -%}
- {%- endif -%}
+ {% if heading.level %}
+ <{{ heading.level }}{{ heading.attributes }}>{{ heading.text }}{{ heading.level }}>
+ {% else %}
+ {{ heading.text }}
+ {% endif %}
+ {% endif %}
- {%- for item in links -%}
+ {% for item in links %}
-
- {%- if item.link -%}
+ {% if item.link %}
{{ item.link }}
- {%- elseif item.text_attributes -%}
- {{- item.text }}
- {%- else -%}
- {{- item.text -}}
- {%- endif -%}
+ {% elseif item.text_attributes %}
+ {{ item.text }}
+ {% else %}
+ {{ item.text }}
+ {% endif %}
- {%- endfor -%}
+ {% endfor %}
-{%- endif -%}
+{% endif %}
diff --git a/core/themes/stable/templates/navigation/links.html.twig b/core/themes/stable/templates/navigation/links.html.twig
index c1bff6b..680d39e 100644
--- a/core/themes/stable/templates/navigation/links.html.twig
+++ b/core/themes/stable/templates/navigation/links.html.twig
@@ -31,25 +31,25 @@
* @see template_preprocess_links()
*/
#}
-{% if links -%}
- {%- if heading -%}
- {%- if heading.level -%}
+{% if links %}
+ {% if heading %}
+ {% if heading.level %}
<{{ heading.level }}{{ heading.attributes }}>{{ heading.text }}{{ heading.level }}>
- {%- else -%}
+ {% else %}
{{ heading.text }}
- {%- endif -%}
- {%- endif -%}
+ {% endif %}
+ {% endif %}
- {%- for item in links -%}
+ {% for item in links %}
-
- {%- if item.link -%}
+ {% if item.link %}
{{ item.link }}
- {%- elseif item.text_attributes -%}
+ {% elseif item.text_attributes %}
{{ item.text }}
- {%- else -%}
+ {% else %}
{{ item.text }}
- {%- endif -%}
+ {% endif %}
- {%- endfor -%}
+ {% endfor %}
-{%- endif %}
+{% endif %}