Free Support Forum -

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

style as in the original. Here is the test files

source file contents:
  • line1
  • line2

file contents after save:
  • line1

·         line2

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

  • here is my code used
    Aspose.Words.License license = new Aspose.Words.License();
    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 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 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.