Fixed template data piping

This commit is contained in:
Slatian
2023-10-29 15:36:16 +01:00
parent a33473fdc9
commit bfa383ddbe
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{% macro place_dl(place, label="", iso_code_prefix="") -%}
{%- if place -%}
{%- if format=="text/html" %}
{%- if format=="html" %}
{% if label %}<dt>{{label}}</dt>{% endif %}
<dd>{{place.name}} {% if place.iso_code%}({% if iso_code_prefix %}{{iso_code_prefix}}-{% endif %}{{place.iso_code}}){% endif %}</dd>
{% else -%}