How to keep numbering and bullets in paragraph tag

Hi Team,

I’m converting docx to html. The code below is this :

    Document document = new Document("D:/EclipseNeon/demo.docx");
	HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.HTML);
	htmlSaveOptions.setPrettyFormat(true);
	document.save("D:/EclipseNeon/demo.html", htmlSaveOptions);

It’s working fine.

But in the demo.html, all the bullets and numbering are as separate <ol></ol> tags. I don’t want the bullets and numbering to be in that. I just want to have them as separate<p> tag. How can I modify this code ?

A post was merged into an existing topic: Bullets and numbering in

tag instead of separate