{{ line.left_no or '' }}{{ line.right_no or '' }}{% if line.kind == 'add' %}+{% elif line.kind == 'remove' %}−{% else %} {% endif %}{{ line.text }}
{%- endmacro -%}
{% for group in groups -%}
{%- if group.kind == 'collapsed' -%}
{%- set first = group.lines[0] -%}
{%- set last = group.lines[-1] -%}
{% for line in group.lines %}{{ render_line(line) }}{% endfor %}
{%- else -%}
{{ render_line(group.lines[0]) }}
{%- endif -%}
{%- endfor %}