I’m running Aspose Words for Java and I noticed that when you insert HTML like this:
final Document document = new Document(); final DocumentBuilder builder = new DocumentBuilder(document); builder.insertHtml( "<p>Paragraph 1 has an extra space inserted after it.</p>" + "<p>Paragraph 2 has an extra line break inserted after it.</p>"); document.save(BASE_PATH + "result.docx");
The resulting file has an extra newline after the second sentence. This is more noticeable when replacing the HTML inside a table.
Is there a way for me to fix it?