Correcting the indentation.

This commit is contained in:
Jeff Baskin 2016-10-23 20:43:55 -04:00
parent 7e9901dc47
commit 2fe783a595

View File

@ -13,14 +13,14 @@
{%- macro config_entries(data, indents) -%}
{%- if data is string or data is number -%}
{{- " " }}{{ data }}{{ '\n' }}
{{ data|indent(indents, True) }}{{ '\n' }}
{%- else -%}
{%- if indents != 0 -%}
{{- " {\n" -}}
{%- endif -%}
{%- if data is mapping -%}
{%- for entry in data|dictsort -%}
{{ entry[0]|indent(indents, True) }}
{{ entry[0]|indent(indents, True) }}{{ ' ' }}
{{- config_entries(entry[1], indents + 2) -}}
{%- endfor -%}
{%- else -%}