Skip to content

Commit

Permalink
Remove internal generated whitespace from decorated component macros
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jun 25, 2022
1 parent 738b7ef commit 4bcdc17
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 31 deletions.
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/button/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/button/macro.njk" import govukButton as source %}
{% macro govukButton(params) %}
{{ source(params) if params.href else source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/button/macro.njk" import govukButton as source -%}
{%- macro govukButton(params) -%}
{{- source(params) if params.href else source(decorate(params, params.decorate)) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/checkboxes/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/checkboxes/macro.njk" import govukCheckboxes as source %}
{% macro govukCheckboxes(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/checkboxes/macro.njk" import govukCheckboxes as source -%}
{%- macro govukCheckboxes(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/date-input/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/date-input/macro.njk" import govukDateInput as source %}
{% macro govukDateInput(params) %}
{{ source(decorate(params, params.decorate, 'govukDateInput')) }}
{% endmacro %}
{% from "govuk/components/date-input/macro.njk" import govukDateInput as source -%}
{%- macro govukDateInput(params) -%}
{{- source(decorate(params, params.decorate, "govukDateInput")) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/file-upload/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/file-upload/macro.njk" import govukFileUpload as source %}
{% macro govukFileUpload(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/file-upload/macro.njk" import govukFileUpload as source -%}
{%- macro govukFileUpload(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}
6 changes: 3 additions & 3 deletions x-govuk/components/decorated/input/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/input/macro.njk" import govukInput as source %}
{% macro govukInput(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{%- macro govukInput(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/radios/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/radios/macro.njk" import govukRadios as source %}
{% macro govukRadios(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/radios/macro.njk" import govukRadios as source -%}
{%- macro govukRadios(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/select/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/select/macro.njk" import govukSelect as source %}
{% macro govukSelect(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/select/macro.njk" import govukSelect as source -%}
{%- macro govukSelect(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}
8 changes: 4 additions & 4 deletions x-govuk/components/decorated/textarea/macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "govuk/components/textarea/macro.njk" import govukTextarea as source %}
{% macro govukTextarea(params) %}
{{ source(decorate(params, params.decorate)) }}
{% endmacro %}
{% from "govuk/components/textarea/macro.njk" import govukTextarea as source -%}
{%- macro govukTextarea(params) -%}
{{- source(decorate(params, params.decorate)) -}}
{%- endmacro %}

0 comments on commit 4bcdc17

Please sign in to comment.