diff --git a/tracks/app/helpers/feed_helper.rb b/tracks/app/helpers/feed_helper.rb index b05f056d..345d9fe2 100644 --- a/tracks/app/helpers/feed_helper.rb +++ b/tracks/app/helpers/feed_helper.rb @@ -57,4 +57,9 @@ module FeedHelper return result_string end + def format_ical_notes(notes) + split_notes = notes.split(/\n/) + joined_notes = split_notes.join("\\n") + end + end diff --git a/tracks/app/views/feed/ical.rhtml b/tracks/app/views/feed/ical.rhtml index f3a69dc4..f68001d2 100644 --- a/tracks/app/views/feed/ical.rhtml +++ b/tracks/app/views/feed/ical.rhtml @@ -14,7 +14,7 @@ DTSTAMP:<%= @todo.created_at.strftime("%Y%m%dT%H%M%SZ") %> DTSTART;VALUE=DATE:<%= @todo.created_at.strftime("%Y%m%d") %> SUMMARY:<%= @todo.description %> <% if @todo.notes? -%> -DESCRIPTION:<%= @todo.notes %> +DESCRIPTION:<%= format_ical_notes(@todo.notes) %> <% end -%> <% if @todo.due -%> DUE;VALUE=DATE:<%= @todo.due.strftime("%Y%m%d") %>