From 277ed5dc1bcc0ecb860c72448974f0f8f6d7d4cd Mon Sep 17 00:00:00 2001 From: Lukas Ruge <lukeslog@googlemail.com> Date: Sun, 12 Aug 2018 15:23:36 +0200 Subject: [PATCH] location fix --- events.ics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events.ics b/events.ics index 4f4a8dd2..63ae7665 100644 --- a/events.ics +++ b/events.ics @@ -9,7 +9,7 @@ METHOD:PUBLISH {% for event in site.events %}BEGIN:VEVENT UID:{{ event.uid }} ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}} -LOCATION:Chaotikum{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %} +LOCATION:{{% if event.locations conatins 'Augenprüfraum' and event.locations conatins 'Wartezimmer' and event.locations conatins 'Lager' %}}Nobreaksoace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %} SUMMARY:{{ event.title | xml_escape }} DESCRIPTION:{% for i in (1..rounds) %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %} {% endfor%}{{ event.short | slice: start, extra }} -- GitLab