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

Free Support Forum - aspose.com

InnerHTML linebreaks

When using d<span style=“color: rgb(51, 51, 51); font-family: “Courier New”; font-size: 13px; background-color: rgb(255, 255, 255);”>documentBuilder.insertHtml(“

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. End text

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. End text

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text.

”)

The output is a single paragraph with one line feed at the end…i expected 3.
How do output so that both paragraphs receive their linefeed except on the last paragraph?

Hi John,

Thanks for your inquiry. After an initial test with Aspose.Words 16.12.0, we were unable to reproduce this issue on our end (see attachment). We would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link:
http://downloads.aspose.com/words/net

Code we used for testing:

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertHtml("

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. End text

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. End text

This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text. This is a test of a very long line of extralong text.

");

doc.Save(MyDir + @"16.12.0.docx");


Best regards,