Removed the unwanted exterior brackets.
This commit is contained in:
parent
4d65dc5b40
commit
d7a27a99b1
@ -15,14 +15,18 @@
|
|||||||
{%- if data is string or data is number -%}
|
{%- if data is string or data is number -%}
|
||||||
{{- " " }}{{ data }}{{ '\n' }}
|
{{- " " }}{{ data }}{{ '\n' }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
{%- if indents != 0 -%}
|
||||||
{{- " {\n" -}}
|
{{- " {\n" -}}
|
||||||
|
{%- 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 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ '}'|indent(indents, True) }}{{ '\n' }}
|
{%- if indents != 0 -%}
|
||||||
|
{{ '}'|indent(indents - 2, True) }}{{ '\n' }}
|
||||||
|
{%- endif -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user