Nouvel essai pour format ical

This commit is contained in:
echarp 2014-08-26 00:09:52 +02:00
parent b69eb4eb0b
commit 9d0bc8b210

View File

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