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

Free Support Forum - aspose.com

insertHTML() list - nested list bullet

Good day.

I have experienced an issue when inserting a particular structure of an HTML nested list into a document using docBuilder.insertHTML()

The list looks as follows:


  • List item 1

  • List item 2

    New paragraph



    • sub bullet 1

    • sub bullet 2

    • sub bullet 2



  • List item 3

    New paragraph



    • 2 sub bullet 1

    • 2 sub bullet 2

    • 2 sub bullet 2



  • List item 4


which renders in a browser like this:

  • List item 1
  • List item 2

    New paragraph


    • sub bullet 1
    • sub bullet 2
    • sub bullet 2

  • List item 3

    New paragraph


    • 2 sub bullet 1
    • 2 sub bullet 2
    • 2 sub bullet 2

  • List item 4


When I insert that HTML via insertHTML, the first bullet of each nested list is indented improperly. Please see the documents attached.

The code is ColdFusion but is very simple:



  • List item 1

  • List item 2

    New paragraph



    • sub bullet 1

    • sub bullet 2

    • sub bullet 2



  • List item 3

    New paragraph



    • 2 sub bullet 1

    • 2 sub bullet 2

    • 2 sub bullet 2



  • List item 4



<cfset docBuilder.moveToBookmark(“bookmark”)>
<cfset docBuilder.insertHTML(listcontent)>
<cfset doc.save(outputFile)>

Any ideas on how to solve this? Thank you.

Hi Chris,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-8278 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Tahir -

Thanks for the notice. I know you’re auto-porting now, so this may not be a valid concern, but the issue I experienced was in the Java version. I’ll look forward to an update.

Hi Chris,

Thanks for your inquiry. I reproduced this issue in Aspose.Words for .NET version and logged this issue under .NET category. As you know Aspose.Words for Java is generated automatically from C# code of Aspose.Words for .NET. Once this issue is fixed in .NET version, it will be fixed in Aspose.Words for Java as well.

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

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


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