Hello support,
we encounter issues with nested enumerations when converting Outlook e-mails to HTML.
Please see the attached examples, showing that nested enumerations are not ending up as they should:
Screenshot of e-mail in Outlook
Screenshot of result
So the HTML ends up like this:
<ol>...</ol> <ul>...</ul> <ol>...</ol> ...
instead of:
<ol> <li>... <ul>...</ul> </li> <li>....</li> .... </ol>
The code we use for the conversion to HTML:
final MsgLoadOptions loadOptions = new MsgLoadOptions(); loadOptions.setPrefferedTextEncoding(Charsets.UTF_8); MailMessage mailMessage = MailMessage.load(inputStream, loadOptions); mailMessage = removeSignature(mailMessage); HtmlSaveOptions saveOption = SaveOptions.getDefaultHtml(); saveOption.setCheckBodyContentEncoding(true); mailMessage.save(outputStream, saveOptions);
We tested it with the latest version of Aspose e-mail for Java.
I will create a paid support ticket as well, referencing this one.
Kind regards, Stefan