{%- macro text(view, inline = true) -%}

    {%- if view.hasTitle -%}
        {{- view.title ~ ': ' -}}
    {%- endif -%}

    {%- if view.empty -%}
        -
    {%- else -%}

        {%- if view.hasChildren -%}

            {%- if inline -%}

                {%- for child in view.children %}

                    {{- _self.text(child) -}}

                    {%- if not loop.last -%}
                        {{- ', ' -}}
                    {%- endif -%}

                {%- endfor -%}

            {%- else -%}

                {%- for child in view.children %}

{{ _self.text(child) -}}

                {%- endfor -%}

            {%- endif -%}

        {%- endif -%}

        {%- if view.hasValue -%}
            {{- view.value|striptags -}}
        {%- endif -%}

    {%- endif -%}

{%- endmacro -%}

{%- if view -%}

    {{- _self.text(view, false) -}}

{%- endif -%}

{%- macro text(view, level = 0) -%}

    {%- if view.hasTitle -%}
        {{- view.title ~ ': ' -}}
    {%- endif -%}

    {%- if view.empty -%}
        -
    {%- else -%}

        {%- if view.hasChildren -%}

            {%- for child in view.children %}

{% if level > 0 %}{% for i in 1..level %}{{ '    ' }}{% endfor %}{% endif %}{{ _self.text(child, level + 1) -}}

            {%- endfor -%}

        {%- endif -%}

        {%- if view.hasValue -%}
            {{- view.value|striptags -}}
        {%- endif -%}

    {%- endif -%}

{%- endmacro -%}

{%- if view -%}

    {{- _self.text(view) -}}

{%- endif -%}

Add intentations to data text template.
Add intentations to data text template.
