Bugfix: descricao com varias linhas gera iCal incorreto

master
Alinson S. Xavier 18 years ago
parent 05b3200b7b
commit c2613417ec

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