Converted Html not keeping bullet list tag

I am loading an html file that contains unordered list and saving it back to html after some processing. The saved html is not keeping the <ul><li></li></ul> style as in the original. Here is the test files

source file contents:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Style-Type" content="text/css" /><meta name="generator" content="Aspose.Words for .NET 10.7.0.0" /><title></title></head><body><ul type="disc" style="margin-bottom:0pt; margin-top:0pt"><li style="margin-bottom:0pt; margin-top:0pt"><span style="font-family:'Times New Roman'; font-size:12pt">line1</span></li><li style="margin-bottom:14pt; margin-top:0pt"><span style="font-family:'Times New Roman'; font-size:12pt">line2</span></li></ul></body></html>

file contents after save:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Style-Type" content="text/css" /><meta name="generator" content="Aspose.Words for .NET 10.7.0.0" /><title></title></head><body><ul type="disc" style="margin-bottom:0pt; margin-top:0pt"><li style="margin-bottom:0pt; margin-top:0pt"><span style="font-family:'Times New Roman'; font-size:12pt">line1</span></li></ul><p style="margin:0pt 0pt 14pt 36pt; text-indent:-18pt"><span style="font-family:Symbol; font-size:12pt">·</span><span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="font-family:'Times New Roman'; font-size:12pt">line2</span></p></body></html>

Please see the saved file not contained the second <li></li> pair. Instead it replaced with a ‘.’ character and non-breaking spaces.

here is my code used

Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
Document doc = new Document(@"D:\source.htm");
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
options.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
doc.Save(@"D:\savedFile.htm", options);

Please help.
Thanks,

Hi
Thanks for your request. Yes, unfortunately, currently, Aspose.Words does not output lists as native HTML lists. We will consider adding an option, that controls how list items are exported to HTML. Your request has been linked to the appropriate issue. We will let you know once it is resolved.
Best regards,

Thanks for the reply. Can you suggest any workaround to circumvent this issue?
Thanks

Hi
Thanks for your request. Unfortunately, currently there is no way to control how lists are output to HTML. We will let you know once the option that controls this is available.
Best regards,

The issues you have found earlier (filed as WORDSNET-1170) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(13)