Added the carryover entry.

This commit is contained in:
Jeff Baskin 2016-10-23 22:12:47 -04:00
parent 8fb48f7225
commit 4fbbe5d822

View File

@ -23,8 +23,11 @@
{%- if data is mapping -%}
{%- for entry in data|dictsort -%}
{%- if entry[0] in groupings -%}
{{- config_entries(entry[1], indents + 2, carryover=entry[0]) -}}
{{- config_entries(entry[1], indents, carryover=entry[0]) -}}
{%- else -%}
{%- if carryover -%}
{{ carryover|indent(indents, True) }}
{%- endif -%}
{{ entry[0]|indent(indents, True) }}
{{- config_entries(entry[1], indents + 2) -}}
{%- endif -%}