How do I create a bulleted list inside of a table cell

I am using the following code to try to create a bulleted list inside of a single cell, but it’s not working. For some reason, the “writeln” method is keeping all of the strings on the same line. If I try adding the new line control character the subsequent lines do not contain the bullet. Is this possible? If so, how do I accomplish this?

public static Cell addBulletedCell(Document asposeDocument, DocumentBuilder builder, Vector<String> text, Function<Cell, Cell>... formatters) {
    Cell cell = builder.insertCell();
    for (Function<Cell, Cell> formatter: formatters)
        cell = formatter.apply(cell);
    builder.getListFormat().setList(asposeDocument.getLists().add(ListTemplate.BULLET_DISK));
    for(String line: text) {
        builder.writeln(line);
    }
    return cell;
}

@sbroadhead,

You can build logic on the following code to get the desired output:

Document doc = new Document("E:\\temp\\table.docx");

doc.getLists().add(ListTemplate.NUMBER_DEFAULT);
com.aspose.words.List list = doc.getLists().get(0);

Table tab = doc.getFirstSection().getBody().getTables().get(0);

DocumentBuilder builder = new DocumentBuilder(doc);
builder.moveTo(tab.getLastRow().getLastCell().getFirstParagraph());

builder.writeln("Normal Text");

builder.getListFormat().setList(list);
for (int i = 1; i < 5; i++) {
    builder.writeln(String.format("List Item " + i));
}
builder.getListFormat().removeNumbers();

builder.writeln("Normal Text");

doc.save("E:\\Temp\\awjava-19.8.docx");