Skip to content

Commit

Permalink
Use Windows-style line endings. [#65]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Dec 28, 2011
1 parent 4592dd0 commit 690fcb0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions app/views/events/ical.ics.erb
@@ -1,11 +1,12 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//quorum2.sf.net//<%= SITE_TITLE %> <%= APP_VERSION %>//EN
BEGIN:VEVENT
UID:<%= ical_uid @event %>
SUMMARY:<%= ical_escape @event.name %>
LOCATION:<%= ical_escape [@event.street, @event.street2, @event.city, @event.state.code, @event.country.code].compact.join(', ') %>
DESCRIPTION:<%= ical_escape @event.description %>
DTSTART;VALUE=DATE:<%= @event.date.to_s :ical %>
END:VEVENT
END:VCALENDAR
<% cr = 13.chr %>
BEGIN:VCALENDAR<%= cr %>
VERSION:2.0<%= cr %>
PRODID:-//quorum2.sf.net//<%= SITE_TITLE %> <%= APP_VERSION %>//EN<%= cr %>
BEGIN:VEVENT<%= cr %>
UID:<%= ical_uid @event %><%= cr %>
SUMMARY:<%= ical_escape @event.name %><%= cr %>
LOCATION:<%= ical_escape [@event.street, @event.street2, @event.city, @event.state.code, @event.country.code].compact.join(', ') %><%= cr %>
DESCRIPTION:<%= ical_escape @event.description %><%= cr %>
DTSTART;VALUE=DATE:<%= @event.date.to_s :ical %><%= cr %>
END:VEVENT<%= cr %>
END:VCALENDAR<%= cr %>

0 comments on commit 690fcb0

Please sign in to comment.