InsertHtml problem - bulleted list within table cell

When I create a table cell with

builder.InsertCell();

and then do something like:

builder.InsertHtml("

  • bullet one
  • this line shows no bullet
");

The second line shows no bullet. This happens if there is only one
  • as well.

    This is happening with the latest version of Aspose.Word.

    Thanks for checking into this,
    Jerry
  • Hi Jerry,

    Thank you for considering Aspose.

    The following code

    builder.StartTable();
    builder.InsertCell();
    builder.InsertHtml(“

    • bullet one
    • this line shows no bullet
    ”);
    builder.EndRow();
    builder.EndTable();

    produces the file I have attached. As you can see, the second line shows a bullet as well. Please post all code you use fot building the table (or at least that cell).

    Thanks for the response. Apparently it was a ClearFormatting call after the inserthtml that caused the problem. There is one other issue with the list: The insertHtml causes a spaceAfter = 14pts. See this in your example as well. This doesn't necessarily look good within a table cell. How do I get rid of this spaceAfter?

    Thanks,
    Jerry

    Simply put these lines of code immediately after inserting HTML:

    builder.ParagraphFormat.SpaceAfterAuto = false;
    builder.ParagraphFormat.SpaceAfter = 0;