We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

insertHtml with lists yields wrong format

A nested list in HTML is inserted into a word document. The result is obviously wrong formatted. Is this a known bug and can this be worked around?

public void testList() throws Exception {
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
String html =
    ” +
    "
  • Element 1" +
    "
      " +
      "
    • Element 1.1
    • " +
      "
    " +
    "
  • " +
    "
  • Element 2" +
    "
      " +
      "
    • Element 2.1
    • " +
      "
    " +
    "
  • " +
”;
builder.insertHtml(html);
doc.save(“c:/tmp/aspose/TestList.doc”);
}

Hi Jens,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.0.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved.

Sorry for inconvenience.

Best Regards,

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


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