documentBuilder.insertHtml("<p>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</p><p>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</p><p>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.</p>")
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: https://releases.aspose.com/words/net/ Code we used for testing:
Document doc = new Document();
DocumentBuilder builder = newDocumentBuilder(doc);
builder.InsertHtml("<p>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</p><p>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</p><p>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.</p>");
doc.Save(MyDir + @"16.12.0.docx");
Best regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.