From a3cc0b2c552b3ffad0d8f3a2f774711928149865 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 9 Nov 2023 07:57:56 +0000 Subject: [PATCH] Indent HTML for Select --- .../src/govuk/components/select/template.njk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/govuk-frontend/src/govuk/components/select/template.njk b/packages/govuk-frontend/src/govuk/components/select/template.njk index fdd1b2466e..ec8e663d27 100644 --- a/packages/govuk-frontend/src/govuk/components/select/template.njk +++ b/packages/govuk-frontend/src/govuk/components/select/template.njk @@ -44,12 +44,12 @@ {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}> {% for item in params.items %} {% if item %} - {# Allow selecting by text content (the value for an option when no value attribute is specified) #} - {% set effectiveValue = item.value | default(item.text) %} - + {#- Allow selecting by text content (the value for an option when no value attribute is specified) #} + {%- set effectiveValue = item.value | default(item.text) %} + {% endif %} {% endfor %}