-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove internal generated whitespace from decorated component macros
- Loading branch information
1 parent
738b7ef
commit 4bcdc17
Showing
8 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |