User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 The date range format from Email Selected Events (bug 244400) can also be applied to exporting events to HTML and to RTF. Reproducible: Always Steps to Reproduce: 1. Select multiple events in search unifinder. 2a. Copy, then Paste into HTML Composer, or OOo Writer. 2b. Export Selected events to Rich Text Format. Actual Results: "When" text has two dates and times with redundant info. If description is more than one line, it doesn't fit in current format. If description is preformatted (e.g., an outline), format is lost. Expected Results: Omit repeated date if same date. Omit repeated time if same time. Omit times if all day event. Show description like 'body' of message, in paragraph below headers. Preserve line breaks. Preserve indentation.
Created attachment 150162 [details] [diff] [review] Move formatInterval to dateUtils, adjust calendarMail.js and importExport.js to use it dateUtils.js: add formatInterval (extracted from calendarMail.js) calendarMail.js: formatInterval functionality moved, now calls dateUtils. importExport.js: use formatInterval in eventArrayToHTML, eventArrayToRTF. Adjust formatting to accomodate multiline and preformatted descriptions in body. wizard.xul: add dateUtils.js, as importExport.js now depends on it.
Checked in. Thanks
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!