fix crlf issue

This commit is contained in:
Reinier Balt 2009-03-31 22:11:37 +02:00
parent c6c74ff6df
commit 7f4929808c
2 changed files with 35 additions and 35 deletions

View file

@ -1,7 +1,7 @@
<%
context = text_context
todos_in_context = todos.select { |t| t.context_id == context.id }
if todos_in_context.length > 0
-%> <%= context.name.upcase %>:
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
<%
context = text_context
todos_in_context = todos.select { |t| t.context_id == context.id }
if todos_in_context.length > 0
-%> <%= context.name.upcase %>:
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
<% end -%>

View file

@ -1,30 +1,30 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//rousette.org.uk//Tracks 1.04//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:<%= ENV['TZ'] || 'GMT' %>
LAST-MODIFIED:<%= Time.now.strftime("%Y%m%dT%H%M%SZ") %>
TZNAME:<%= ENV['TZ'] %>
END:VTIMEZONE
<% for @todo in @todos -%>
BEGIN:VTODO
DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %>
DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %>
SUMMARY:<%= @todo.description %>
UID:<%= todo_url(@todo) %>
<% if @todo.notes? -%>
DESCRIPTION:<%= format_ical_notes(@todo.notes) %>
<% end -%>
<% if @todo.due -%>
DUE;VALUE=DATE:<%= @todo.due.strftime("%Y%m%d") %>
<% end -%>
<% if @todo.project_id -%>
URL:<%= project_url(@todo.project) %>
<% else -%>
URL:<%= context_url(@todo.context) %>
<% end -%>
END:VTODO
<% end -%>
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//rousette.org.uk//Tracks 1.04//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:<%= ENV['TZ'] || 'GMT' %>
LAST-MODIFIED:<%= Time.now.strftime("%Y%m%dT%H%M%SZ") %>
TZNAME:<%= ENV['TZ'] %>
END:VTIMEZONE
<% for @todo in @todos -%>
BEGIN:VTODO
DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %>
DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %>
SUMMARY:<%= @todo.description %>
UID:<%= todo_url(@todo) %>
<% if @todo.notes? -%>
DESCRIPTION:<%= format_ical_notes(@todo.notes) %>
<% end -%>
<% if @todo.due -%>
DUE;VALUE=DATE:<%= @todo.due.strftime("%Y%m%d") %>
<% end -%>
<% if @todo.project_id -%>
URL:<%= project_url(@todo.project) %>
<% else -%>
URL:<%= context_url(@todo.context) %>
<% end -%>
END:VTODO
<% end -%>
END:VCALENDAR