{# This is the html template used to convert parsed constructs into user-friendly html that can be used in reports. Please see construct_html.py for its use. #}

 offset | {%- for i in range(width) -%}  {% if i < 16 %} {% endif %}{{'%x'|format(i)}} {%- endfor -%}  |  {%- for _ in range(width) -%} {{'%x'|format(loop.cycle(*range(16)))}} {#- We only have enough space for the first digit -#} {%- endfor -%}
 ------ | {{'-- ' * width}} | {{'-' * width}} {% for offset, hex_line, ascii_line in hex_dump %}
 {{offset}} | {{hex_line}} | {{ascii_line}} {% endfor %}

 

{% for offset, (colors, member) in color_map.items()|sort %} {# Offset #} {# Name #} {# Value #} {% endfor %}

Offset

Name

Value

{{'%06x' % offset}}

{{member.name}}

{{member.value_str|replace('\n', '
')|replace('\t', '  ')}}