{% macro render_row(row) %}{% for cell in row.cells %} 1 %} colspan="{{ cell.colspan }}"{% endif %}{% if cell.rowspan > 1 %} rowspan="{{ cell.rowspan }}"{% endif %} style="text-align: {{ cell.align }};{% if cell.pad_left %} padding-left: {{ cell.pad_left }}pt;{% endif %}{% if cell.pad_right %} padding-right: {{ cell.pad_right }}pt;{% endif %}">{% for line in cell.lines %}
{% for run in line.runs %}{% if run.chunks %}{% for chunk in run.chunks %}{{ chunk.text }}{% endfor %}{% else %}{{ run.text }}{% endif %}{% endfor %}
{% endfor %}{% endfor %}{% endmacro %} {{ report.title }} {% for page in pages %}
{% if page.vectors %} {% endif %} {% if page.loose_lines %}
{% for line in page.loose_lines %}
{%- for run in line.runs %}{% if run.chunks %}{% for chunk in run.chunks %}{{ chunk.text }}{% endfor %}{% else %}{{ run.text }}{% endif %}{% endfor %}
{% endfor %}
{% endif %} {% if page.columns %} {% for width in page.columns %} {% endfor %} {% if page.header_rows %} {% for row in page.rows[:page.header_rows] %} {{ render_row(row) }} {% endfor %} {% endif %} {% for row in page.rows[page.header_rows:] %} {{ render_row(row) }} {% endfor %}
{% endif %} {% if page.rules %} {% endif %}
{% endfor %}