From b229a6b5088c572faab03e7331908076524708a4 Mon Sep 17 00:00:00 2001 From: echarp Date: Mon, 25 Aug 2014 23:49:29 +0200 Subject: [PATCH] Nouvel essai pour format ical --- app/views/events/index.ics.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/events/index.ics.erb b/app/views/events/index.ics.erb index f1a26c17..8ca269db 100644 --- a/app/views/events/index.ics.erb +++ b/app/views/events/index.ics.erb @@ -12,7 +12,7 @@ DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %> UID:<%= event.id %>@agendadulibre.org SUMMARY:<%= event.title %> URL:<%= event_url event %> -DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/,/, '\,').gsub(/;/, '\;').gsub(/\r/, '').gsub /^/, ' ' %> +DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/,/, '","').gsub(/;/, '";"').gsub /^/, ' ' %> LOCATION:<%= event.full_address %> END:VEVENT <% end %>