From: Philipp Spitzer Date: Sat, 11 Jun 2022 12:04:29 +0000 (+0200) Subject: Correctly use whitespace between parts of gastronomy info. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/75650c143a239c5e84a9f5eeb58371bfb8104286 Correctly use whitespace between parts of gastronomy info. --- diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index e153344..33bb9d2 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -52,10 +52,11 @@ * '''Betreiber''': {{ operator }} * '''Hütten''': {%- for info in gastronomy %} -** {{ info.name }} - {%- if info.wr_page %}{{ wr_page(info.wr_page) }}{% endif %} - {%- if info.weblink %}{{ weblink(info.weblink) }}{% endif %} - {%- if info.note %} ({{ info.note }}){% endif %} +** {% set space = joiner(" ") %} + {%- if info.name %}{{ space() }}{{ info.name }}{% endif %} + {%- if info.wr_page %}{{ space() }}{{ wr_page(info.wr_page) }}{% endif %} + {%- if info.weblink %}{{ space() }}{{ weblink(info.weblink) }}{% endif %} + {%- if info.note %}{{ space() }}({{ info.note }}){% endif %} {%- endfor %} * '''Andere Rodelbahnen''': {%- for info in sledrun_list %}