rem: var DescriptionHtml = document.createElement( "description" ); var Description = calendarEventDisplay.event.description; if( Description.length > 53 ) Description = Description.substr( 0, 50 )+"...";  var DescriptionText = document.createTextNode( "Description: "+Description ); DescriptionHtml.appendChild( DescriptionText ); HolderBox.appendChild( DescriptionHtml ); 
add: var Description =  "Description: "+calendarEventDisplay.event.description; var lines = Description.split("\n"); var nbmaxlines = 5 ; var nblines = lines.length ; if( nblines > nbmaxlines ) { var nblines = nbmaxlines ; lines[ nblines - 1 ] = "..." ; }  for (var i = 0; i < nblines; i++) { var DescriptionHtml = document.createElement("description"); var DescriptionText = document.createTextNode(lines[i]); DescriptionHtml.appendChild(DescriptionText); HolderBox.appendChild(DescriptionHtml); } 
context: function getPreviewTextForRepeatingEvent( calendarEventDisplay ){	showTooltip = true;         var HolderBox = document.createElement( "vbox" );       if (calendarEventDisplay.event.title)   {      var TitleHtml = document.createElement( "description" );      var TitleText = "Title: "+calendarEventDisplay.event.title;            /*      if( calendarEventDisplay.event.recurUnits == "years" )      {         //count the number of years to figure out                  TitleText = TitleText+" "+getNumberOfRepeatTimes( calendarEventDisplay.event, false );      }*/      var TitleTextNode = document.createTextNode( TitleText );      TitleHtml.appendChild( TitleTextNode );      HolderBox.appendChild( TitleHtml );   }   var DateHtml = document.createElement( "description" );   var startDate = new Date( calendarEventDisplay.displayDate );   var DateText = document.createTextNode( "Start: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );   DateHtml = document.createElement( "description" );   startDate = new Date( calendarEventDisplay.displayEndDate );   DateText = document.createTextNode( "End: "+gCalendarWindow.dateFormater.getFormatedDate( startDate )+" "+gCalendarWindow.dateFormater.getFormatedTime( startDate ) );   DateHtml.appendChild( DateText );   HolderBox.appendChild( DateHtml );      if (calendarEventDisplay.event.description)   {      var DescriptionHtml = document.createElement( "description" );      var Description = calendarEventDisplay.event.description;      if( Description.length > 53 )         Description = Description.substr( 0, 50 )+"...";      var DescriptionText = document.createTextNode( "Description: "+Description );      DescriptionHtml.appendChild( DescriptionText );      HolderBox.appendChild( DescriptionHtml );   }   return ( HolderBox );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/44b1f7a4f0f8a2312832431191d6c08182847a06/calendar.js/clean/calendar/resources/content/calendar.js