rem: tmpStr += "</li></ul>";
add: tmpStr += "</ul>";
context: static QString eventViewerFormatAttendees( Incidence *event ){  QString tmpStr;  Attendee::List attendees = event->attendees();  if ( attendees.count() ) {    KIconLoader* iconLoader = new KIconLoader();    QString iconPath = iconLoader->iconPath( "mail_generic", KIcon::Small );    tmpStr += eventViewerAddTag( "h3", i18n("Organizer") );    tmpStr += "<ul><li>" ;    KABC::AddressBook *add_book = KABC::StdAddressBook::self();    KABC::Addressee::List addressList;    addressList = add_book->findByEmail( event->organizer().email() );    KABC::Addressee o = addressList.first();    if ( !o.isEmpty() && addressList.size() < 2 ) {      tmpStr += eventViewerAddLink( "uid" + o.uid(), o.formattedName() );    } else {      tmpStr += event->organizer().fullName();    }    if ( !iconPath.isNull() ) {      tmpStr += eventViewerAddLink( "mailto:" + event->organizer().email(),               "<img src=\"" + iconPath + "\">" );    }    tmpStr += "</li></ul>";    tmpStr += eventViewerAddTag( "h3", i18n("Attendees") );    tmpStr += "<ul>";    Attendee::List::ConstIterator it;    for( it = attendees.begin(); it != attendees.end(); ++it ) {      Attendee *a = *it;      if ( a->name().isEmpty() ) {        addressList = add_book->findByEmail( a->email() );        KABC::Addressee o = addressList.first();        if ( !o.isEmpty() && addressList.size() < 2 ) {          tmpStr += eventViewerAddLink( "uid" + o.uid(), o.formattedName() );        } else {          tmpStr += "<li>";          tmpStr += a->email();          tmpStr += "\n";        }      } else {        tmpStr += "<li><a href=\"uid:" + a->uid() + "\">";        if ( !a->name().isEmpty() ) tmpStr += a->name();        else tmpStr += a->email();        tmpStr += "</a>\n";      }      kdDebug(5850) << "eventViewerFormatAttendees: uid = " << a->uid() << endl;      if ( !a->email().isEmpty() ) {        if ( !iconPath.isNull() ) {          tmpStr += "<a href=\"mailto:" + a->name() +" "+ "<" + a->email() + ">" + "\">";          tmpStr += "<img src=\"" + iconPath + "\">";          tmpStr += "</a>\n";        }      }    }    tmpStr += "</li></ul>";  }  return tmpStr;}