Skip to content
Snippets Groups Projects
Commit ddc7a123 authored by Johannes Gosch's avatar Johannes Gosch
Browse files

Further breakspace fixing

parent a9933f9d
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -14,8 +14,8 @@ UID:{{ event.uid }} ...@@ -14,8 +14,8 @@ 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}} ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %} LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
SUMMARY:{{ event.title | xml_escape | truncate: 60}} SUMMARY:{{ event.title | xml_escape | truncate: 60}}
DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %} DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}{% endfor%}
{% endfor%} {{ event.short | slice: start, extra }} {{ event.short | slice: start, extra }}
CLASS:PUBLIC CLASS:PUBLIC
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }} DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }} DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment