{%- for t in table %} {%- if t.1.0 != '' -%} {% set headers = t.1.0.split(':')[1] %} {% set headers = headers.split(' ') %} {% endif %}