Nouvel essai pour format ical

This commit is contained in:
echarp 2014-08-26 00:00:45 +02:00
parent 47183617be
commit b69eb4eb0b

View File

@ -10,7 +10,7 @@ BEGIN:VEVENT
DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %> DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %> DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %> SUMMARY:<%= event.title.gsub(/,/, '\,').gsub(/;/, '\;') %>
URL:<%= event_url event %> URL:<%= event_url event %>
DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %> DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %>
LOCATION:<%= event.full_address.gsub(/,/, '\,') %> LOCATION:<%= event.full_address.gsub(/,/, '\,') %>