Correcting the indentation.
This commit is contained in:
parent
7e9901dc47
commit
2fe783a595
@ -13,14 +13,14 @@
|
|||||||
|
|
||||||
{%- macro config_entries(data, indents) -%}
|
{%- macro config_entries(data, indents) -%}
|
||||||
{%- if data is string or data is number -%}
|
{%- if data is string or data is number -%}
|
||||||
{{- " " }}{{ data }}{{ '\n' }}
|
{{ data|indent(indents, True) }}{{ '\n' }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if indents != 0 -%}
|
{%- if indents != 0 -%}
|
||||||
{{- " {\n" -}}
|
{{- " {\n" -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if data is mapping -%}
|
{%- if data is mapping -%}
|
||||||
{%- for entry in data|dictsort -%}
|
{%- for entry in data|dictsort -%}
|
||||||
{{ entry[0]|indent(indents, True) }}
|
{{ entry[0]|indent(indents, True) }}{{ ' ' }}
|
||||||
{{- config_entries(entry[1], indents + 2) -}}
|
{{- config_entries(entry[1], indents + 2) -}}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user