Bugfix: descricao com varias linhas gera iCal incorreto

This commit is contained in:
2008-03-09 18:00:38 -03:00
parent 05b3200b7b
commit c2613417ec

View File

@@ -31,7 +31,7 @@ class Event < ActiveRecord::Base
event.start = date
event.end = date + 1.hour
event.summary = "#{course.short_name}: #{e.title}"
event.description = e.description
event.description = e.description.gsub("\n", "").gsub("\r", "")
cal.add(event)
end
end