I am trying to generate a ics calendar file using a gsp view. whenever I use the <g:each> tag it somehow removes some line breaks and the output file can not be parsed by any calendar app such as outlook, mozilla sunbird...
It seems that <g:each> tag removes line brakes in gsp views. please see view 'calendar.gsp' which contains a standalone example of the behavior. in 'calendar-actual-output.ics' the actual output of the view and in 'calendar-expected-output.ics' you will find the excpected output.
I need to add some extra info.
the line breaks are not removed by the <g:each> tag. even if I replace the tag with a for-loop the line breaks disapear somehow. I haven't found out yet why some line breaks remain.
<%
;
for(int i=0; i < games.size(); i++)
{
Game game = games.get
%>
// do ical stuff
<%
}
%>