rem: var lineIndex = 1; var totalLines = lines.length-1; var exists = false; var formater = new DateFormater(); 
add:  for (var lineIndex = 1; lineIndex < totalLines; lineIndex++) { eventFields = oneLineEventRegExp(lines[lineIndex]);  if (eventFields == null) {  eventFields = multiLineEventStartRegExp(lines[lineIndex]);  if (eventFields != null) {  tmpEventFields = null; var i = lineIndex+1;   while ((i < totalLines) && (tmpEventFields == null)) { tmpEventFields = multiLineEventEndRegExp(lines[i]); if (tmpEventFields == null) eventFields[23] = eventFields[23] + "\n" + lines[i]; i++; }  if (tmpEventFields != null) {  eventFields[23] = eventFields[23] + "\n" + tmpEventFields[1]; eventFields = eventFields.concat(tmpEventFields.slice(2)); } else  {  eventFields = null; } } }        
context: function parseOutlookCSVData( icalStr, discardDuplicates, promptEach ){  var lines = icalStr.split("\n");  var calendarEvent;  var eventArray = new Array();  var dupArray = new Array();  var lineIndex = 1;  var totalLines = lines.length-1;  var exists = false;  var formater = new DateFormater();     while (lineIndex < totalLines) {    var fields = lines[lineIndex].split('","');    ++lineIndex;    if (fields.length < 5)      continue;          fields[0] = fields[0].substring(1); // strip off the leading quote...    var title = fields[0];    //parseShortDate magically decides the format (locale) of dates/times    var sdate = formater.parseShortDate(fields[1]+" "+fields[2]);    var edate = formater.parseShortDate(fields[3]+" "+fields[4]);    if ((sdate != null) && (edate != null)) {      exists = entryExists(sdate, title);      calendarEvent = createEvent();      calendarEvent.id = createUniqueID();      calendarEvent.title = title;      calendarEvent.start.setTime(sdate);      calendarEvent.end.setTime(edate);      if ( !exists )        eventArray[ eventArray.length ] = calendarEvent;      else        dupArray[ dupArray.length ] = calendarEvent;    }  }//   dump("*** calendar entries : " + eventArray.length + "\n");//   dump("*** duplicate entries: " + dupArray.length + "\n");  return { calendarEventArray: eventArray, calendarDuplicateArray: dupArray };}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/760568201aa7e272b4cd904333abe083202c6342/importExport.js/clean/calendar/resources/content/importExport.js