]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Correctly use whitespace between parts of gastronomy info.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 11 Jun 2022 12:04:29 +0000 (14:04 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 11 Jun 2022 12:04:29 +0000 (14:04 +0200)
wrpylib/templates/sledrun_wikitext.txt

index e1533444f4743de6ae03d1ccc259cd26b872acfd..33bb9d256cb993a9e8da6618633d7621164ba84c 100644 (file)
 * '''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 %}