{% set maxLength = 10*1024 %} {% if linkUrl %} {{ linkText }} {% endif %} {% if msgLength < maxLength %} {% set msgAsText = "%s"|format(msg) %} {% set lines = msgAsText.split("\n") %}
{% for line in lines %} {{ line }} {% endfor %}
{% else %} Not showing message, exceeded max lenth of {{ maxLength }} byes. {% endif %} {% if path_to_protobuf %} {% include 'html/protobuf-py.html' %} {% endif %}