Nouvel essai pour format ical

This commit is contained in:
echarp 2014-08-26 00:26:15 +02:00
parent 9d0bc8b210
commit 71e3f1a222
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title.gsub(/,/, '\,').gsub(/;/, '\;') %> SUMMARY:<%= event.title.gsub(/,/, '\,').gsub(/;/, '\;') %>
URL:<%= event_url event %> URL:<%= event_url event %>
DESCRIPTION:<%= strip_tags(event.description).gsub(/&#39;/, '\'').gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %> DESCRIPTION:<%= strip_tags(event.description).gsub(/'/, '').gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %>
LOCATION:<%= event.full_address.gsub(/,/, '\,') %> LOCATION:<%= event.full_address.gsub(/,/, '\,') %>
END:VEVENT END:VEVENT
<% end %> <% end %>

View File

@ -12,7 +12,7 @@ DTEND;TZID=Europe/Paris:<%= 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 %>
URL:<%= event_url event %> URL:<%= event_url event %>
DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/\r/, '').gsub /^/, ' ' %> DESCRIPTION:<%= strip_tags(event.description).gsub(/'/, '').gsub(/,/, '\,').gsub(/;/, '\;').gsub /^/, ' ' %>
LOCATION:<%= event.full_address %> LOCATION:<%= event.full_address %>
END:VEVENT END:VEVENT
END:VCALENDAR END:VCALENDAR