From 75650c143a239c5e84a9f5eeb58371bfb8104286 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sat, 11 Jun 2022 14:04:29 +0200 Subject: [PATCH] Correctly use whitespace between parts of gastronomy info. --- wrpylib/templates/sledrun_wikitext.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 %} -- 2.39.5