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 -%}
|
||||
{{- " " }}{{ data }}{{ '\n' }}
|
||||
{%- else -%}
|
||||
{%- if indents != 0 -%}
|
||||
{{- " {\n" -}}
|
||||
{%- endif -%}
|
||||
{%- if data is mapping -%}
|
||||
{%- for entry in data|dictsort -%}
|
||||
{{ entry[0]|indent(indents, True) }}
|
||||
{{- config_entries(entry[1], indents + 2) -}}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{{ '}'|indent(indents, True) }}{{ '\n' }}
|
||||
{%- if indents != 0 -%}
|
||||
{{ '}'|indent(indents - 2, True) }}{{ '\n' }}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user