It is strange that aspose merge 3 paragraph into one paragraph

It is strange that aspose merge 3 paragraphs into one paragraph.

The red part of my test result should be 3 paragraphs.

My code:

public void testPara() throws Exception {
// The path to the documents directory.
String dataDir = Utils.getDataDir(AsposeApiTest.class);

Document doc = new Document(dataDir + “test3.docx”);
NodeCollection shapes = doc.getChildNodes(NodeType.PARAGRAPH, true);
for (Paragraph obj : shapes)
Paragraph para = (Paragraph) obj;
NodeCollection nodes = para.getChildNodes();
System.out.print("PARAGRAPH: " + para.getText());


PARAGRAPH: Troubleshooting wired connections
PARAGRAPH: To establish a baseline Internet speed, turn off your Wi-Fi and all applications. Using a wired connection, perform a  HYPERLINK “Internet Speed Test – AT&T Official Site” \o “Link opens in new window” \t “_blank” speed test. Connections A typical wired connection looks like this. It may vary based on your equipment.

Hi Hugh,

Thanks for your inquiry. You are facing the expected behavior of Aspose.Words. The mentioned paragraph contains the line breaks. This is the reason you are getting whole text in one paragraph. See the attached image for detail.

Please let us know if you have any more queries.