Removing the excess borders.

This commit is contained in:
Jeff Baskin 2016-10-23 20:11:55 -04:00
parent 12a9447c00
commit 77ed019bfe

View File

@ -14,12 +14,15 @@
{%- 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 }} {{- " " }}{{ data }}
{%- elif data is mapping -%} {%- else -%}
{%- for entry in data|dictsort -%} {{- " {" -}}
{{ entry[0]|indent(indents, True) }} { {%- if data is mapping -%}
{%- for entry in data|dictsort -%}
{{ entry[0]|indent(indents, True) }}
{{- config_entries(entry[1], indents + 2) -}} {{- config_entries(entry[1], indents + 2) -}}
{%- endfor -%}
{%- endif -%}
{{ '}'|indent(indents, True) }}{{ '\n' }} {{ '}'|indent(indents, True) }}{{ '\n' }}
{%- endfor -%}
{%- endif -%} {%- endif -%}
{%- endmacro -%} {%- endmacro -%}