{% macro pre_data(id, value, name) -%}
{% filter indent(width=8) -%}
{%- endfilter %}
{%- endmacro -%}
{% if r.image_status -%}
{% if r.image_status == 'match' or r.image_status == 'diff' -%}
{{ pre_data('rms', r.rms_str, 'RMS') }}
{{ pre_data('tolerance', r.tolerance, 'Tolerance') }}
{%- endif %}
{%- endif %}
{% if r.hash_status -%}
{{ pre_data('baseline_hash', r.baseline_hash, 'Baseline') }}
{% if r.hash_status != 'generated' -%}
{{ pre_data('result_hash', r.result_hash, 'Result') }}
{%- endif %}